mirror of
https://github.com/edubart/otclient.git
synced 2025-12-19 23:27:11 +01:00
get stereo audo working on linux
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user