get stereo audo working on linux

This commit is contained in:
Eduardo Bart
2012-04-14 10:15:51 -03:00
parent ae67c6adbc
commit 8e679f2da7
11 changed files with 311 additions and 47 deletions

View File

@@ -25,15 +25,18 @@
#include "declarations.h"
#include <framework/util/databuffer.h>
class SoundBuffer
{
public:
SoundBuffer();
~SoundBuffer();
bool loadSoundFile(const SoundFilePtr& soundFile);
bool fillBuffer(const SoundFilePtr& soundFile);
bool fillBuffer(ALenum sampleFormat, const DataBuffer<char>& data, int size, int rate);
int getBufferId() { return m_bufferId; }
ALuint getBufferId() { return m_bufferId; }
private:
ALuint m_bufferId;