Interface PcmFormat.Selector
- All Known Subinterfaces:
AudioStream.Factory,Device,Device.Player.Factory,Device.Tuner.Factory
- Enclosing class:
PcmFormat
public static interface PcmFormat.Selector
Interface for selecting a quality-compatible audio format.
-
Method Summary
Modifier and TypeMethodDescriptionselectFormat(AudioFormat format) Gets a supported format that matches the parameter in quality (sample rate, bit depth, and number of channels).
-
Method Details
-
selectFormat
Gets a supported format that matches the parameter in quality (sample rate, bit depth, and number of channels). If possible, frame size, signedness and endianness of the parameter are also matched.- Throws:
UnsupportedFormatException- if no quality-matching format is supported.
-