RavEngine
Loading...
Searching...
No Matches
vraudio::AudioBuffer Class Reference

Public Types

typedef ChannelView Channel
 
typedef AlignedAllocator< float, kMemoryAlignmentBytes > FloatAllocator
 
typedef AlignedAllocator< int16, kMemoryAlignmentBytes > Int16Allocator
 
typedef std::vector< float, FloatAllocator > AlignedFloatVector
 
typedef std::vector< int16, Int16Allocator > AlignedInt16Vector
 

Public Member Functions

 AudioBuffer (size_t num_channels, size_t num_frames)
 
 AudioBuffer (AudioBuffer &&other)
 
 AudioBuffer (const AudioBuffer &other)=delete
 
AudioBuffer & operator= (const AudioBuffer &other)
 
size_t num_channels () const
 
size_t num_frames () const
 
SourceId source_id () const
 
Channel & operator[] (size_t channel)
 
const Channel & operator[] (size_t channel) const
 
AudioBuffer & operator= (const std::vector< std::vector< float > > &other)
 
AudioBuffer & operator+= (const AudioBuffer &other)
 
AudioBuffer & operator-= (const AudioBuffer &other)
 
std::vector< Channel >::iterator begin ()
 
std::vector< Channel >::iterator end ()
 
std::vector< Channel >::const_iterator begin () const
 
std::vector< Channel >::const_iterator end () const
 
void Clear ()
 
size_t GetChannelStride () const
 
void set_source_id (SourceId source_id)
 

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