SAL
A C++ library for spatial audio.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
sal::StereoBuffer Class Reference

#include <audiobuffer.h>

Inheritance diagram for sal::StereoBuffer:
sal::Buffer

Public Member Functions

 StereoBuffer (const Int num_samples) noexcept
 
void SetLeftSample (const Int sample_id, const Sample sample_value) noexcept
 
void SetRightSample (const Int sample_id, const Sample sample_value) noexcept
 
Sample GetLeftSample (const Int sample_id) const noexcept
 
Sample GetRightSample (const Int sample_id) const noexcept
 
const SampleGetLeftReadPointer () const noexcept
 
const SampleGetRightReadPointer () const noexcept
 
SampleGetLeftWritePointer () noexcept
 
SampleGetRightWritePointer () noexcept
 
void AddSamplesLeft (const Sample *samples, const Int from_sample_id, const Int num_samples_to_add) noexcept
 
void FilterAddSamplesLeft (const Int from_sample_id, const Int num_samples, const Sample *samples, mcl::DigitalFilter &filter) noexcept
 
void FilterAddSamplesRight (const Int from_sample_id, const Int num_samples, const Sample *samples, mcl::DigitalFilter &filter) noexcept
 
void AddSamplesRight (const Sample *samples, const Int from_sample_id, const Int num_samples_to_add) noexcept
 
virtual ~StereoBuffer ()
 
- Public Member Functions inherited from sal::Buffer
 Buffer (const Int num_channels, const Int num_samples)
 
 Buffer ()
 
 Buffer (Sample **data_referenced, const Int num_channels, const Int num_samples) noexcept
 
virtual Int num_channels () const noexcept
 
virtual Int num_samples () const noexcept
 
Sample GetSample (Int channel_id, Int sample_id) const noexcept
 
bool IsDataOwner () const noexcept
 
void SetSample (const Int channel_id, const Int sample_id, const Sample sample) noexcept
 
void SetSamples (const Int channel_id, const Int from_sample_id, const Int num_samples, const Sample *samples) noexcept
 
void SetSamples (const Buffer &other) noexcept
 
void AddSamples (const Int channel_id, const Int from_sample_id, const Int num_samples, const Sample *samples) noexcept
 
void MultiplyAddSamples (const Int channel_id, const Int from_sample_id, const Int num_samples, const Sample *samples, const Sample constant) noexcept
 
void FilterAddSamples (const Int channel_id, const Int from_sample_id, const Int num_samples, const Sample *samples, mcl::DigitalFilter &filter) noexcept
 
const SampleGetReadPointer (const Int channel_id) const noexcept
 
SampleGetWritePointer (const Int channel_id) noexcept
 
Sample ** GetWritePointers () noexcept
 
virtual void AddSamples (const Buffer &buffer) noexcept
 
void SetFrame (const Int channel_id, const Int frame_id, const Int frame_length, const Signal &signal)
 
void PrintData ()
 
virtual void Reset () noexcept
 
 Buffer (const Buffer &other)
 
Bufferoperator= (const Buffer &other)
 
virtual ~Buffer ()
 

Additional Inherited Members

- Public Types inherited from sal::Buffer
enum  ChannelLabels { kMonoChannel = 0, kLeftChannel = 0, kRightChannel = 1 }
 
- Static Public Member Functions inherited from sal::Buffer
static bool Test ()
 

Constructor & Destructor Documentation

sal::StereoBuffer::StereoBuffer ( const Int  num_samples)
inlinenoexcept
virtual sal::StereoBuffer::~StereoBuffer ( )
inlinevirtual

Member Function Documentation

void sal::StereoBuffer::AddSamplesLeft ( const Sample samples,
const Int  from_sample_id,
const Int  num_samples_to_add 
)
inlinenoexcept
void sal::StereoBuffer::AddSamplesRight ( const Sample samples,
const Int  from_sample_id,
const Int  num_samples_to_add 
)
inlinenoexcept
void sal::StereoBuffer::FilterAddSamplesLeft ( const Int  from_sample_id,
const Int  num_samples,
const Sample samples,
mcl::DigitalFilter &  filter 
)
inlinenoexcept
void sal::StereoBuffer::FilterAddSamplesRight ( const Int  from_sample_id,
const Int  num_samples,
const Sample samples,
mcl::DigitalFilter &  filter 
)
inlinenoexcept
const Sample* sal::StereoBuffer::GetLeftReadPointer ( ) const
inlinenoexcept
Sample sal::StereoBuffer::GetLeftSample ( const Int  sample_id) const
inlinenoexcept
Sample* sal::StereoBuffer::GetLeftWritePointer ( )
inlinenoexcept
const Sample* sal::StereoBuffer::GetRightReadPointer ( ) const
inlinenoexcept
Sample sal::StereoBuffer::GetRightSample ( const Int  sample_id) const
inlinenoexcept
Sample* sal::StereoBuffer::GetRightWritePointer ( )
inlinenoexcept
void sal::StereoBuffer::SetLeftSample ( const Int  sample_id,
const Sample  sample_value 
)
inlinenoexcept
void sal::StereoBuffer::SetRightSample ( const Int  sample_id,
const Sample  sample_value 
)
inlinenoexcept

The documentation for this class was generated from the following file: