2011-01-19 16:00:19 +08:00
|
|
|
#ifndef __SIMPLE_AUDIO_ENGINE_JNI__
|
|
|
|
#define __SIMPLE_AUDIO_ENGINE_JNI__
|
|
|
|
|
|
|
|
#include <jni.h>
|
|
|
|
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
extern void playBackgroundMusicJNI(const char *path, bool isLoop);
|
2011-01-21 15:15:09 +08:00
|
|
|
extern void stopBackgroundMusicJNI();
|
|
|
|
extern void pauseBackgroundMusicJNI();
|
|
|
|
extern void resumeBackgroundMusicJNI();
|
|
|
|
extern void rewindBackgroundMusicJNI();
|
|
|
|
extern bool isBackgroundMusicPlayingJNI();
|
|
|
|
extern float getBackgroundMusicVolumeJNI();
|
|
|
|
extern void setBackgroundMusicVolumeJNI(float volume);
|
2011-07-26 15:52:41 +08:00
|
|
|
extern unsigned int playEffectJNI(const char* path, bool bLoop);
|
2011-01-21 15:15:09 +08:00
|
|
|
extern void stopEffectJNI(unsigned int nSoundId);
|
|
|
|
extern void endJNI();
|
|
|
|
extern float getEffectsVolumeJNI();
|
|
|
|
extern void setEffectsVolumeJNI(float volume);
|
|
|
|
extern void preloadEffectJNI(const char *path);
|
|
|
|
extern void unloadEffectJNI(const char* path);
|
2011-01-19 16:00:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __SIMPLE_AUDIO_ENGINE_JNI__
|