26#include "../../common/global_private.h"
27#include "../../common/Thread.h"
48 this->pMixChannel =
NULL;
49 this->UsesExternalBuffer =
false;
66 this->pBuffer = pBuffer;
68 this->pMixChannel =
NULL;
69 this->UsesExternalBuffer =
true;
89 this->UsesExternalBuffer =
true;
102 std::map<String,DeviceRuntimeParameter*>::iterator
iter =
Parameters.begin();
138 #if HAVE_GCC_VECTOR_EXTENSIONS
140 const v4sf vcoeff = { fLevel, fLevel, fLevel, fLevel };
156 #if HAVE_GCC_VECTOR_EXTENSIONS
172 #if HAVE_GCC_VECTOR_EXTENSIONS
189 #if HAVE_GCC_VECTOR_EXTENSIONS
208 #if HAVE_GCC_VECTOR_EXTENSIONS
210 const v4sf vcoeff = { fLevel, fLevel, fLevel, fLevel };
226 #if HAVE_GCC_VECTOR_EXTENSIONS
Audio Channel (always mono)
virtual ~AudioChannel()
Destructor.
AudioChannel(uint ChannelNr, uint BufferSize)
Create real channel.
float * Buffer()
Audio signal buffer.
std::map< String, DeviceRuntimeParameter * > Parameters
void CopyTo(AudioChannel *pDst, const uint Samples)
Copies audio data (unmodified) from this AudioChannel to the given destination AudioChannel.
std::map< String, DeviceRuntimeParameter * > ChannelParameters()
void Clear()
Reset audio buffer with silence.
void MixTo(AudioChannel *pDst, const uint Samples)
Copies audio data (unmodified) from this AudioChannel and mixes it to the given destination AudioChan...
Wraps as a kind of pointer class some data object shared with other threads, to protect / synchronize...
static void * allocAlignedMem(size_t boundary, size_t size)
Allocates an aligned block of memory.
static void freeAlignedMem(void *ptr)
Frees an aligned block of memory allocated with allocAlignedMem()