please android_test now ;D
This commit is contained in:
+3
-2
@@ -655,8 +655,9 @@ maemo{
|
||||
}
|
||||
|
||||
android_test{
|
||||
#switch of android audio
|
||||
CONFIG += android_api8
|
||||
DEFINES += ANDROID
|
||||
DEFINES += ANDROID_TEST
|
||||
DEFINES += ANDROID_API8
|
||||
HEADERS += src/gui/qt/sound/androidapi8dummy.h
|
||||
SOURCES += src/gui/qt/sound/androidapi8dummy.cpp
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user