axmol/CocosDenshion/android/jni/SimpleAudioEngineJni.h

25 lines
855 B
C
Raw Normal View History

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);
extern void stopBackgroundMusicJNI();
extern void pauseBackgroundMusicJNI();
extern void resumeBackgroundMusicJNI();
extern void rewindBackgroundMusicJNI();
extern bool isBackgroundMusicPlayingJNI();
extern float getBackgroundMusicVolumeJNI();
extern void setBackgroundMusicVolumeJNI(float volume);
extern unsigned int playEffectJNI(const char* path);
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__