mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 03:39:55 +00:00
Make the sound's Play method return void
This commit is contained in:
parent
caf5d71d44
commit
2429755bf1
@ -66,7 +66,7 @@ public:
|
||||
OpenAL_SoundStream(std::auto_ptr<Sound_Decoder> decoder);
|
||||
virtual ~OpenAL_SoundStream();
|
||||
|
||||
virtual bool Play();
|
||||
virtual void Play();
|
||||
virtual void Stop();
|
||||
virtual bool isPlaying();
|
||||
};
|
||||
@ -116,7 +116,7 @@ OpenAL_SoundStream::~OpenAL_SoundStream()
|
||||
Decoder->Close();
|
||||
}
|
||||
|
||||
bool OpenAL_SoundStream::Play()
|
||||
void OpenAL_SoundStream::Play()
|
||||
{
|
||||
std::vector<char> data(BufferSize);
|
||||
|
||||
@ -135,8 +135,6 @@ bool OpenAL_SoundStream::Play()
|
||||
alSourceQueueBuffers(Source, NumBuffers, Buffers);
|
||||
alSourcePlay(Source);
|
||||
throwALerror();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void OpenAL_SoundStream::Stop()
|
||||
|
@ -7,7 +7,7 @@ namespace MWSound
|
||||
{
|
||||
class Sound
|
||||
{
|
||||
virtual bool Play() = 0;
|
||||
virtual void Play() = 0;
|
||||
virtual void Stop() = 0;
|
||||
virtual bool isPlaying() = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user