Make the sound's Play method return void

This commit is contained in:
Chris Robinson 2012-03-17 03:20:43 -07:00
parent caf5d71d44
commit 2429755bf1
2 changed files with 3 additions and 5 deletions

View file

@ -66,7 +66,7 @@ public:
OpenAL_SoundStream(std::auto_ptr<Sound_Decoder> decoder); OpenAL_SoundStream(std::auto_ptr<Sound_Decoder> decoder);
virtual ~OpenAL_SoundStream(); virtual ~OpenAL_SoundStream();
virtual bool Play(); virtual void Play();
virtual void Stop(); virtual void Stop();
virtual bool isPlaying(); virtual bool isPlaying();
}; };
@ -116,7 +116,7 @@ OpenAL_SoundStream::~OpenAL_SoundStream()
Decoder->Close(); Decoder->Close();
} }
bool OpenAL_SoundStream::Play() void OpenAL_SoundStream::Play()
{ {
std::vector<char> data(BufferSize); std::vector<char> data(BufferSize);
@ -135,8 +135,6 @@ bool OpenAL_SoundStream::Play()
alSourceQueueBuffers(Source, NumBuffers, Buffers); alSourceQueueBuffers(Source, NumBuffers, Buffers);
alSourcePlay(Source); alSourcePlay(Source);
throwALerror(); throwALerror();
return true;
} }
void OpenAL_SoundStream::Stop() void OpenAL_SoundStream::Stop()

View file

@ -7,7 +7,7 @@ namespace MWSound
{ {
class Sound class Sound
{ {
virtual bool Play() = 0; virtual void Play() = 0;
virtual void Stop() = 0; virtual void Stop() = 0;
virtual bool isPlaying() = 0; virtual bool isPlaying() = 0;