88 |
|
|
89 |
// methods |
// methods |
90 |
inline float* Buffer() { return pBuffer; } ///< Audio signal buffer |
inline float* Buffer() { return pBuffer; } ///< Audio signal buffer |
91 |
|
void SetBuffer(float* pBuffer) { this->pBuffer = pBuffer; } |
92 |
inline AudioChannel* MixChannel() { return pMixChannel; } ///< In case this channel is a mix channel, then it will return a pointer to the real channel this channel refers to, NULL otherwise. |
inline AudioChannel* MixChannel() { return pMixChannel; } ///< In case this channel is a mix channel, then it will return a pointer to the real channel this channel refers to, NULL otherwise. |
93 |
inline void Clear() { memset(pBuffer, 0, uiBufferSize * sizeof(float)); } ///< Reset audio buffer with silence |
inline void Clear() { memset(pBuffer, 0, uiBufferSize * sizeof(float)); } ///< Reset audio buffer with silence |
94 |
|
inline void Clear(uint Samples) { memset(pBuffer, 0, Samples * sizeof(float)); } ///< Reset audio buffer with silence |
95 |
void CopyTo(AudioChannel* pDst, const uint Samples); |
void CopyTo(AudioChannel* pDst, const uint Samples); |
96 |
void CopyTo(AudioChannel* pDst, const uint Samples, const float fLevel); |
void CopyTo(AudioChannel* pDst, const uint Samples, const float fLevel); |
97 |
void MixTo(AudioChannel* pDst, const uint Samples); |
void MixTo(AudioChannel* pDst, const uint Samples); |