mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 23:21:20 -04:00
Minor OpenAL_SoundStream cleanups
This commit is contained in:
parent
4e908aa095
commit
28378c063b
@ -65,7 +65,7 @@ static ALenum getALFormat(ChannelConfig chans, SampleType type)
|
|||||||
class OpenAL_SoundStream : public Sound
|
class OpenAL_SoundStream : public Sound
|
||||||
{
|
{
|
||||||
static const ALuint sNumBuffers = 6;
|
static const ALuint sNumBuffers = 6;
|
||||||
static const ALfloat sBufferLength;
|
static const ALfloat sBufferLength = 0.125f;
|
||||||
|
|
||||||
OpenAL_Output &mOutput;
|
OpenAL_Output &mOutput;
|
||||||
|
|
||||||
@ -95,7 +95,6 @@ public:
|
|||||||
bool process();
|
bool process();
|
||||||
};
|
};
|
||||||
|
|
||||||
const ALfloat OpenAL_SoundStream::sBufferLength = 0.125f;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// A background streaming thread (keeps active streams processed)
|
// A background streaming thread (keeps active streams processed)
|
||||||
@ -186,7 +185,6 @@ OpenAL_SoundStream::OpenAL_SoundStream(OpenAL_Output &output, ALuint src, Decode
|
|||||||
}
|
}
|
||||||
catch(std::exception &e)
|
catch(std::exception &e)
|
||||||
{
|
{
|
||||||
mOutput.mFreeSources.push_back(mSource);
|
|
||||||
alDeleteBuffers(sNumBuffers, mBuffers);
|
alDeleteBuffers(sNumBuffers, mBuffers);
|
||||||
alGetError();
|
alGetError();
|
||||||
throw;
|
throw;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user