Fixed Phonon sound support.

This commit is contained in:
Xawotihs
2011-07-19 21:28:46 +00:00
parent 262c31b708
commit e09fe7570e
2 changed files with 28 additions and 53 deletions

View File

@@ -18,7 +18,6 @@
#include "JTypes.h"
#ifdef USE_PHONON
#include <phonon/AudioOutput>
#include <phonon/MediaObject>
@@ -68,20 +67,14 @@ public:
public slots:
void seekAtTheBegining();
#else
#if defined (PSP)
#elif defined (PSP)
JMP3* mTrack;
#else
#ifdef WITH_FMOD
#elif defined WITH_FMOD
FSOUND_SAMPLE* mTrack; // MP3 needed to be of "sample" type for FMOD, FMUSIC_MODULE is for MODs
#else
#else
void* mTrack;
#endif //WITH_FMOD
#endif //PSP
#endif //USE_PHONON
};
@@ -92,23 +85,17 @@ class JSample
JSample();
~JSample();
int mVoice;
unsigned long fileSize();
#if defined (PSP)
WAVDATA *mSample;
#else
#ifdef WITH_FMOD
#elif defined (WITH_FMOD)
FSOUND_SAMPLE *mSample;
#else
#ifdef USE_PHONON
#elif defined (USE_PHONON)
Phonon::AudioOutput* mOutput;
Phonon::MediaObject* mMediaObject;
#endif //USE_PHONON
#endif
void* mSample;
#endif //WITH_FMOD
#endif //PSP
};