From 4a615a8d1e85d4d593d9b49c34066738455cb65b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 15 Nov 2004 05:18:50 +0000 Subject: [PATCH] remove GetPlayingSounds --- stepmania/src/RageSoundManager.cpp | 8 -------- stepmania/src/RageSoundManager.h | 1 - 2 files changed, 9 deletions(-) diff --git a/stepmania/src/RageSoundManager.cpp b/stepmania/src/RageSoundManager.cpp index 9e15cfed1a..2310b9787f 100644 --- a/stepmania/src/RageSoundManager.cpp +++ b/stepmania/src/RageSoundManager.cpp @@ -217,14 +217,6 @@ RageSound *RageSoundManager::PlaySound( RageSound &snd, const RageSoundParams *p return sound_to_play; } -/* XXX: If this is ever called from a thread, it should take a bLockSounds parameter, - * like GetCopies. */ -set RageSoundManager::GetPlayingSounds() const -{ - LockMut(g_SoundManMutex); /* lock for access to playing_sounds */ - return playing_sounds; -} - void RageSoundManager::DeleteSound( RageSound *p ) { /* Stop playing the sound. */ diff --git a/stepmania/src/RageSoundManager.h b/stepmania/src/RageSoundManager.h index 0997ac3573..1ce223b6b2 100644 --- a/stepmania/src/RageSoundManager.h +++ b/stepmania/src/RageSoundManager.h @@ -50,7 +50,6 @@ public: void CommitPlayingPosition( int ID, int64_t frameno, int pos, int got_bytes ); /* used by drivers */ float GetPlayLatency() const; int GetDriverSampleRate( int rate ) const; - set GetPlayingSounds() const; /* When deleting a sound from any thread except the one calling Update(), this * must be used to prevent race conditions. */