This commit is contained in:
Glenn Maynard
2005-11-29 02:14:33 +00:00
parent e130c39f86
commit cd62607128
+4 -4
View File
@@ -1,4 +1,4 @@
/* RageSoundMixBuffer - Simple audio mixing */
/* RageSoundMixBuffer - Simple audio mixing. */
#ifndef RAGE_SOUND_MIX_BUFFER_H
#define RAGE_SOUND_MIX_BUFFER_H
@@ -6,6 +6,9 @@
class RageSoundMixBuffer
{
public:
RageSoundMixBuffer();
~RageSoundMixBuffer();
/* Mix the given buffer of samples. */
void write( const int16_t *buf, unsigned size );
@@ -18,9 +21,6 @@ public:
void SetVolume( float f );
void SetWriteOffset( int iOffset );
RageSoundMixBuffer();
~RageSoundMixBuffer();
private:
int32_t *m_pMixbuf;
unsigned m_iBufSize; /* actual allocated samples */