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 Type
    Method
    Description
    Gets a supported format that matches the parameter in quality (sample rate, bit depth, and number of channels).
  • Method Details

    • selectFormat

      PcmFormat selectFormat(AudioFormat format) throws UnsupportedFormatException
      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.