pub trait AudioAggregatorImpl: AudioAggregatorImplExt + AggregatorImpl {
    // Provided methods
    fn create_output_buffer(&self, num_frames: u32) -> Option<Buffer> { ... }
    fn aggregate_one_buffer(
        &self,
        pad: &AudioAggregatorPad,
        inbuf: &BufferRef,
        in_offset: u32,
        outbuf: &mut BufferRef,
        out_offset: u32,
        num_frames: u32,
    ) -> bool { ... }
}

Provided Methods§

source

fn create_output_buffer(&self, num_frames: u32) -> Option<Buffer>

Create a new output buffer contains num_frames frames.

source

fn aggregate_one_buffer( &self, pad: &AudioAggregatorPad, inbuf: &BufferRef, in_offset: u32, outbuf: &mut BufferRef, out_offset: u32, num_frames: u32, ) -> bool

Aggregates one input buffer to the output buffer. The in_offset and out_offset are in “frames”, which is the size of a sample times the number of channels. Returns TRUE if any non-silence was added to the buffer

Object Safety§

This trait is not object safe.

Implementors§