Output Source
What the audio sink needs from the app. The sink is written against this and PcmOutput, so a test can give it a fake output and no DAC.
Inheritors
Functions
Whether this source can recreate an output after this typed failure and a decoder seek.
Closes output and everything opened for it. Blocks.
Whether the sink should accept request, answered from cached capabilities only. Do not open, negotiate, or probe here. UsbDacAudioSink.getFormatSupport asks it for every raw PCM format.
Last sink position observed on the playback thread, or null after a flush/reconfiguration. This is an advisory recovery point, not proof of samples audible at the instant of loss.
Opens the best output for request. Blocks for 100 ms or more: the sink calls it off the main thread.
Optional transactional format change after drain; null retains the close/open fallback.
Android's ducking and the app's own player volume, as a multiplier from 0 to 1.
True once if the settings or the devices changed since the last time the output was opened.