diff options
author | Max Horn | 2008-06-28 15:13:54 +0000 |
---|---|---|
committer | Max Horn | 2008-06-28 15:13:54 +0000 |
commit | 3b1a60c3b23fa509cb2a9d3f2f85eb4d9997724b (patch) | |
tree | 482980c59b1655ad58da0ddddcc66e363e517424 /backends/platform | |
parent | 861cf07522540222198f143ee480f6682df9f11f (diff) | |
download | scummvm-rg350-3b1a60c3b23fa509cb2a9d3f2f85eb4d9997724b.tar.gz scummvm-rg350-3b1a60c3b23fa509cb2a9d3f2f85eb4d9997724b.tar.bz2 scummvm-rg350-3b1a60c3b23fa509cb2a9d3f2f85eb4d9997724b.zip |
Removed obsolete ::clearSoundCallback() code
svn-id: r32826
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/ds/arm9/source/osystem_ds.cpp | 8 | ||||
-rw-r--r-- | backends/platform/ds/arm9/source/osystem_ds.h | 1 | ||||
-rw-r--r-- | backends/platform/gp2x/gp2x-common.h | 2 | ||||
-rw-r--r-- | backends/platform/gp2x/gp2x.cpp | 4 | ||||
-rw-r--r-- | backends/platform/iphone/osys_iphone.cpp | 4 | ||||
-rw-r--r-- | backends/platform/iphone/osys_iphone.h | 1 | ||||
-rw-r--r-- | backends/platform/null/null.cpp | 3 | ||||
-rw-r--r-- | backends/platform/ps2/systemps2.cpp | 1 | ||||
-rw-r--r-- | backends/platform/psp/osys_psp.cpp | 6 | ||||
-rw-r--r-- | backends/platform/psp/osys_psp.h | 1 |
10 files changed, 2 insertions, 29 deletions
diff --git a/backends/platform/ds/arm9/source/osystem_ds.cpp b/backends/platform/ds/arm9/source/osystem_ds.cpp index 6e6b457115..d2c3b579bd 100644 --- a/backends/platform/ds/arm9/source/osystem_ds.cpp +++ b/backends/platform/ds/arm9/source/osystem_ds.cpp @@ -433,13 +433,7 @@ void OSystem_DS::unlockMutex(MutexRef mutex) { void OSystem_DS::deleteMutex(MutexRef mutex) { } -void OSystem_DS::clearSoundCallback() { -// consolePrintf("Clearing sound callback"); -// DS::setSoundProc(NULL, NULL); -} - -int OSystem_DS::getOutputSampleRate() const -{ +int OSystem_DS::getOutputSampleRate() const { return DS::getSoundFrequency(); } diff --git a/backends/platform/ds/arm9/source/osystem_ds.h b/backends/platform/ds/arm9/source/osystem_ds.h index 246797188f..e53575a4a5 100644 --- a/backends/platform/ds/arm9/source/osystem_ds.h +++ b/backends/platform/ds/arm9/source/osystem_ds.h @@ -114,7 +114,6 @@ public: virtual void unlockMutex(MutexRef mutex); virtual void deleteMutex(MutexRef mutex); - virtual void clearSoundCallback(); virtual int getOutputSampleRate() const; virtual bool openCD(int drive); diff --git a/backends/platform/gp2x/gp2x-common.h b/backends/platform/gp2x/gp2x-common.h index e8e128a249..78d1296bc7 100644 --- a/backends/platform/gp2x/gp2x-common.h +++ b/backends/platform/gp2x/gp2x-common.h @@ -132,8 +132,6 @@ public: virtual bool setSoundCallback(SoundProc proc, void *param); // overloaded by CE backend virtual Audio::Mixer *getMixer(); - void clearSoundCallback(); - // Poll CD status // Returns true if cd audio is playing bool pollCD(); diff --git a/backends/platform/gp2x/gp2x.cpp b/backends/platform/gp2x/gp2x.cpp index 2d2b4b8078..8735ea757e 100644 --- a/backends/platform/gp2x/gp2x.cpp +++ b/backends/platform/gp2x/gp2x.cpp @@ -478,10 +478,6 @@ bool OSystem_GP2X::setSoundCallback(SoundProc proc, void *param) { return true; } -void OSystem_GP2X::clearSoundCallback() { - SDL_CloseAudio(); -} - int OSystem_GP2X::getOutputSampleRate() const { return _samplesPerSec; } diff --git a/backends/platform/iphone/osys_iphone.cpp b/backends/platform/iphone/osys_iphone.cpp index 3365c2da9d..4cb90d35b9 100644 --- a/backends/platform/iphone/osys_iphone.cpp +++ b/backends/platform/iphone/osys_iphone.cpp @@ -1128,10 +1128,6 @@ bool OSystem_IPHONE::setSoundCallback(SoundProc proc, void *param) { return true; } -void OSystem_IPHONE::clearSoundCallback() { - debug("clearSoundCallback()\n"); -} - int OSystem_IPHONE::getOutputSampleRate() const { return AUDIO_SAMPLE_RATE; } diff --git a/backends/platform/iphone/osys_iphone.h b/backends/platform/iphone/osys_iphone.h index 71272b73fe..a01cad480a 100644 --- a/backends/platform/iphone/osys_iphone.h +++ b/backends/platform/iphone/osys_iphone.h @@ -153,7 +153,6 @@ public: virtual void deleteMutex(MutexRef mutex); virtual bool setSoundCallback(SoundProc proc, void *param); - virtual void clearSoundCallback(); virtual int getOutputSampleRate() const; virtual void setTimerCallback(TimerProc callback, int interval); diff --git a/backends/platform/null/null.cpp b/backends/platform/null/null.cpp index 3389d357b7..0c75bd1fcb 100644 --- a/backends/platform/null/null.cpp +++ b/backends/platform/null/null.cpp @@ -283,9 +283,6 @@ bool OSystem_NULL::setSoundCallback(SoundProc proc, void *param) { return true; } -void OSystem_NULL::clearSoundCallback() { -} - int OSystem_NULL::getOutputSampleRate() const { return 22050; } diff --git a/backends/platform/ps2/systemps2.cpp b/backends/platform/ps2/systemps2.cpp index b2818ebfc0..28ced7b345 100644 --- a/backends/platform/ps2/systemps2.cpp +++ b/backends/platform/ps2/systemps2.cpp @@ -727,7 +727,6 @@ void OSystem_PS2::quit(void) { driveStandby(); fio.umount("pfs0:"); } - //clearSoundCallback(); //setTimerCallback(NULL, 0); _screen->wantAnim(false); _systemQuit = true; diff --git a/backends/platform/psp/osys_psp.cpp b/backends/platform/psp/osys_psp.cpp index d5d59d4d6e..aff5373510 100644 --- a/backends/platform/psp/osys_psp.cpp +++ b/backends/platform/psp/osys_psp.cpp @@ -626,16 +626,12 @@ bool OSystem_PSP::setSoundCallback(SoundProc proc, void *param) { return true; } -void OSystem_PSP::clearSoundCallback() { - SDL_CloseAudio(); -} - int OSystem_PSP::getOutputSampleRate() const { return _samplesPerSec; } void OSystem_PSP::quit() { - clearSoundCallback(); + SDL_CloseAudio(); SDL_Quit(); sceGuTerm(); sceKernelExitGame(); diff --git a/backends/platform/psp/osys_psp.h b/backends/platform/psp/osys_psp.h index a59e927b97..64514f6872 100644 --- a/backends/platform/psp/osys_psp.h +++ b/backends/platform/psp/osys_psp.h @@ -131,7 +131,6 @@ public: typedef void (*SoundProc)(void *param, byte *buf, int len); virtual bool setSoundCallback(SoundProc proc, void *param); - virtual void clearSoundCallback(); virtual int getOutputSampleRate() const; Common::SaveFileManager *getSavefileManager() { return _savefile; } |