From 4eb20f1e793c65b7c34ed0312394cb4a2087c8ed Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 18 Jan 2007 08:32:37 +0000 Subject: [PATCH] remove unsafe return value --- stepmania/src/RageSound.cpp | 4 ++-- stepmania/src/RageSound.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/RageSound.cpp b/stepmania/src/RageSound.cpp index 3c723cbecf..5e4357b9c4 100644 --- a/stepmania/src/RageSound.cpp +++ b/stepmania/src/RageSound.cpp @@ -407,7 +407,7 @@ void RageSound::SoundIsFinishedPlaying() m_Mutex.Unlock(); } -RageSound *RageSound::Play( const RageSoundParams *pParams ) +void RageSound::Play( const RageSoundParams *pParams ) { if( m_pSource == NULL ) { @@ -415,7 +415,7 @@ RageSound *RageSound::Play( const RageSoundParams *pParams ) return NULL; } - return SOUNDMAN->PlaySound( *this, pParams ); + SOUNDMAN->PlaySound( *this, pParams ); } void RageSound::Stop() diff --git a/stepmania/src/RageSound.h b/stepmania/src/RageSound.h index c2e27c7de0..86a27f967e 100644 --- a/stepmania/src/RageSound.h +++ b/stepmania/src/RageSound.h @@ -123,7 +123,7 @@ public: RString GetError() const { return m_sError; } - RageSound *Play( const RageSoundParams *params=NULL ); + void Play( const RageSoundParams *params=NULL ); void Stop(); /* Cleanly pause or unpause the sound. If the sound wasn't already playing,