please android_test now ;D

This commit is contained in:
doitux
2012-12-22 19:08:23 +01:00
parent 60f35815b0
commit dc11a850dc
3 changed files with 26 additions and 24 deletions
+11 -11
View File
@@ -1,13 +1,13 @@
#include "soundevents.h"
#ifdef ANDROID
#ifdef ANDROID_API8
#include "androidapi8dummy.h"
#ifdef ANDROID_API8
#include "androidapi8dummy.h"
#else
#include "androidaudio.h"
#endif
#else
#include "androidaudio.h"
#endif
#else
#include "sdlplayer.h"
#include "sdlplayer.h"
#endif
@@ -22,11 +22,11 @@ SoundEvents::SoundEvents(ConfigFile *c): myConfig(c), lastSBValue(0), lastSBLeve
{
#ifdef ANDROID
#ifdef ANDROID_API8
myPlayer = new AndroidApi8Dummy(myConfig);
#else
myPlayer = new AndroidAudio(myConfig);
#endif
#ifdef ANDROID_API8
myPlayer = new AndroidApi8Dummy(myConfig);
#else
myPlayer = new AndroidAudio(myConfig);
#endif
#else
myPlayer = new SDLPlayer(myConfig);
#endif
+12 -11
View File
@@ -4,13 +4,13 @@
#include <string>
#ifdef ANDROID
#ifdef ANDROID_API8
class AndroidApi8Dummy;
#ifdef ANDROID_API8
class AndroidApi8Dummy;
#else
class AndroidAudio;
#endif
#else
class AndroidAudio;
#endif
#else
class SDLPlayer;
class SDLPlayer;
#endif
@@ -34,14 +34,15 @@ protected:
private:
#ifdef ANDROID
#ifdef ANDROID_API8
AndroidApi8Dummy *myPlayer;
#else
AndroidAudio *myPlayer;
#endif
#ifdef ANDROID_API8
AndroidApi8Dummy *myPlayer;
#else
AndroidAudio *myPlayer;
#endif
#else
SDLPlayer *myPlayer;
#endif
ConfigFile *myConfig;
int lastSBValue;
unsigned int lastSBLevel;