@NonNullByDefault public interface AudioSource
This is an audio source, which can provide a continuous live stream of audio. Its main use is for microphones and other "line-in" sources and it can be registered as a service in order to make it available throughout the system.
- Kai Kreuzer - Initial contribution
Method SummaryModifier and TypeMethodDescription
getId()Returns a simple string that uniquely identifies this serviceGets an AudioStream for reading audio data in supported audio formatReturns a localized human readable label that can be used within UIs.Obtain the audio formats supported by this AudioSource
getIdString getId()Returns a simple string that uniquely identifies this service
- an id that identifies this service
getLabelReturns a localized human readable label that can be used within UIs.
locale- the locale to provide the label for
- a localized string to be used in UIs
getSupportedFormatsObtain the audio formats supported by this AudioSource
- The audio formats supported by this service
getInputStreamGets an AudioStream for reading audio data in supported audio format
format- the expected audio format of the stream
- AudioStream for reading audio data
AudioException- If problem occurs obtaining the stream