pub struct SoftStreamConfig { /* private fields */ }
Expand description
A software fuchsia audio output, which implements Audio Driver Streaming Interface as defined in //docs/concepts/drivers/driver_interfaces/audio_streaming.md
Implementations§
Source§impl SoftStreamConfig
impl SoftStreamConfig
Sourcepub fn create_output(
unique_id: &[u8; 16],
manufacturer: &str,
product: &str,
clock_domain: u32,
pcm_format: PcmFormat,
packet_duration: MonotonicDuration,
initial_external_delay: MonotonicDuration,
) -> Result<(ClientEnd<StreamConfigMarker>, AudioFrameStream)>
pub fn create_output( unique_id: &[u8; 16], manufacturer: &str, product: &str, clock_domain: u32, pcm_format: PcmFormat, packet_duration: MonotonicDuration, initial_external_delay: MonotonicDuration, ) -> Result<(ClientEnd<StreamConfigMarker>, AudioFrameStream)>
Create a new software audio device, returning a client channel which can be supplied
to the AudioCore and will act correctly as an audio output driver channel which can
render audio in the pcm_format
format, and an AudioFrameStream which produces the
audio frames delivered to the audio output.
Spawns a task to handle messages from the Audio Core and setup of internal VMO buffers
required for audio output. See AudioFrameStream for more information on timing
requirements for audio output.
packet_duration
: desired duration of an audio packet returned by the stream. Rounded down to
end on a audio frame boundary.
initial_external_delay
: delay that is added after packets have been returned from the stream