gstreamer_audio::subclass::prelude

Trait AudioAggregatorImpl

Source
pub trait AudioAggregatorImpl: AggregatorImpl + ObjectSubclass<Type: IsA<AudioAggregator>> {
    // 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§