class Buffer

Defined at line 93 of file ../../src/media/audio/audio_core/stream.h

Public Methods

void ~Buffer ()

Defined at line 95 of file ../../src/media/audio/audio_core/stream.h

void Buffer (Buffer && rhs)

Defined at line 101 of file ../../src/media/audio/audio_core/stream.h

Buffer & operator= (Buffer && rhs)

Defined at line 102 of file ../../src/media/audio/audio_core/stream.h

void Buffer (const Buffer & rhs)

Defined at line 104 of file ../../src/media/audio/audio_core/stream.h

Buffer & operator= (const Buffer & rhs)

Defined at line 105 of file ../../src/media/audio/audio_core/stream.h

Fixed start ()

Defined at line 107 of file ../../src/media/audio/audio_core/stream.h

Fixed end ()

Defined at line 108 of file ../../src/media/audio/audio_core/stream.h

int64_t length ()

Defined at line 109 of file ../../src/media/audio/audio_core/stream.h

void * payload ()

Defined at line 110 of file ../../src/media/audio/audio_core/stream.h

void set_frames_consumed (int64_t frames)

Call this to indicate that frames [start(), start()+frames) have been consumed.

If not called before the Buffer is discarded, we assume the entire buffer has been consumed.

Defined at line 114 of file ../../src/media/audio/audio_core/stream.h

StreamUsageMask usage_mask ()

Returns the set of usages that have contributed to this buffer.

Defined at line 120 of file ../../src/media/audio/audio_core/stream.h

float total_applied_gain_db ()

Returns the total gain that has been applied to the source stream. A source stream may be the

result of mixing many other sources, so in practice this value is the maximum accumulated

gain applied to any input to this source stream.

For example, if this source stream is the result of mixing Stream A with gain -12dB applied,

and Stream B with gain +2dB applied, then total_applied_gain_db() would return +2.0.

This is entirely unrelated to actual stream signal content and should only be used as a rough

indicator of the amplitude of the source stream.

Defined at line 131 of file ../../src/media/audio/audio_core/stream.h

Friends

class ReadableStream