Interface Device

All Superinterfaces:
PcmFormat.Selector

public interface Device extends PcmFormat.Selector
Representation of an audio device.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Specification for where bits are placed when the bytes allocated for a sample are not completely filled by the sample bits.
    static interface 
    PCM writer with optional methods to control real-time playing where applicanle.
    static interface 
    PCM reader for input (from microphone, ADC, or whatever audio input is available).
  • Method Summary

    Modifier and Type
    Method
    Description
    layout(PcmFormat format)
    Gets the bit layout expected by players with the given format associated with this device.
    Gets the identifying name of the device.
    void
    Writes a human-readable representation of available formats to the given stream.
    Gets a descriptive string of the device, which includes the name().

    Methods inherited from interface net.avadeaux.klipspringer.codec.PcmFormat.Selector

    selectFormat
  • Method Details

    • layout

      default Device.BitLayout layout(PcmFormat format)
      Gets the bit layout expected by players with the given format associated with this device. Default returns Device.BitLayout.LSB.
    • name

      String name()
      Gets the identifying name of the device.
    • toString

      String toString()
      Gets a descriptive string of the device, which includes the name().
      Overrides:
      toString in class Object
    • printAvailableFormats

      void printAvailableFormats(PrintStream out)
      Writes a human-readable representation of available formats to the given stream.