From 9d3db00a9667df7ec900bde2cb1ee93903ba6f48 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Fri, 13 Jun 2003 20:49:09 +0000 Subject: [PATCH] Better encapsulation --- .../src/arch/Sound/RageSoundDriver_Null.h | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_Null.h b/stepmania/src/arch/Sound/RageSoundDriver_Null.h index 38aeb9a700..8a1cc7e032 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_Null.h +++ b/stepmania/src/arch/Sound/RageSoundDriver_Null.h @@ -18,7 +18,7 @@ class RageSound_Null: public RageSoundDriver { -public: +private: struct sound { RageSound *snd; bool stopping; @@ -30,21 +30,21 @@ public: vector sounds; bool shutdown; + SDL_Thread *MixerThreadPtr; static int MixerThread_start(void *p); void MixerThread(); - SDL_Thread *MixerThreadPtr; - - bool GetData(); +protected: /* virtuals: */ - void StartMixing(RageSound *snd); - void StopMixing(RageSound *snd); - int GetPosition(const RageSound *snd) const; - float GetPlayLatency() const; - - void Update(float delta); + virtual void StartMixing(RageSound *snd); + virtual void StopMixing(RageSound *snd); + virtual int GetPosition(const RageSound *snd) const; + virtual float GetPlayLatency() const; + virtual void Update(float delta); + virtual bool GetData(); +public: RageSound_Null(); ~RageSound_Null(); };