From 3a7c5628c5f221fdd23ac244e0d95fe7dff80f4e Mon Sep 17 00:00:00 2001 From: folecr Date: Wed, 17 Jul 2013 16:58:23 -0700 Subject: [PATCH] Empty implementation of SimpleAudioEngine to satisfy compiler. --- .../android/cddSimpleAudioEngine.cpp | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/CocosDenshion/android/cddSimpleAudioEngine.cpp b/CocosDenshion/android/cddSimpleAudioEngine.cpp index 722ff0c1b4..9a1abf44a4 100644 --- a/CocosDenshion/android/cddSimpleAudioEngine.cpp +++ b/CocosDenshion/android/cddSimpleAudioEngine.cpp @@ -55,4 +55,26 @@ namespace CocosDenshion { SimpleAudioEngine::~SimpleAudioEngine() { } + // Empty implementations. On Android, only subclasses are meant to be used + void SimpleAudioEngine::preloadBackgroundMusic(const char* pszFilePath) { } + void SimpleAudioEngine::playBackgroundMusic(const char* pszFilePath, bool bLoop) { } + void SimpleAudioEngine::stopBackgroundMusic(bool bReleaseData) { } + void SimpleAudioEngine::pauseBackgroundMusic() { } + void SimpleAudioEngine::resumeBackgroundMusic() { } + void SimpleAudioEngine::rewindBackgroundMusic() { } + bool SimpleAudioEngine::willPlayBackgroundMusic() { } + bool SimpleAudioEngine::isBackgroundMusicPlaying() { } + float SimpleAudioEngine::getBackgroundMusicVolume() { } + void SimpleAudioEngine::setBackgroundMusicVolume(float volume) { } + float SimpleAudioEngine::getEffectsVolume() { } + void SimpleAudioEngine::setEffectsVolume(float volume) { } + unsigned int SimpleAudioEngine::playEffect(const char* pszFilePath, bool bLoop) { } + void SimpleAudioEngine::pauseEffect(unsigned int nSoundId) { } + void SimpleAudioEngine::pauseAllEffects() { } + void SimpleAudioEngine::resumeEffect(unsigned int nSoundId) { } + void SimpleAudioEngine::resumeAllEffects() { } + void SimpleAudioEngine::stopEffect(unsigned int nSoundId) { } + void SimpleAudioEngine::stopAllEffects() { } + void SimpleAudioEngine::preloadEffect(const char* pszFilePath) { } + void SimpleAudioEngine::unloadEffect(const char* pszFilePath) { } }