mirror of https://github.com/axmolengine/axmol.git
33 lines
1.2 KiB
C
33 lines
1.2 KiB
C
#ifndef __SIMPLE_AUDIO_ENGINE_JNI__
|
|
#define __SIMPLE_AUDIO_ENGINE_JNI__
|
|
|
|
#include <jni.h>
|
|
|
|
extern "C"
|
|
{
|
|
extern void preloadBackgroundMusicJNI(const char *path);
|
|
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, bool bLoop,
|
|
float pitch, float pan, float gain);
|
|
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);
|
|
extern void pauseEffectJNI(unsigned int nSoundId);
|
|
extern void pauseAllEffectsJNI();
|
|
extern void resumeEffectJNI(unsigned int nSoundId);
|
|
extern void resumeAllEffectsJNI();
|
|
extern void stopAllEffectsJNI();
|
|
}
|
|
|
|
#endif // __SIMPLE_AUDIO_ENGINE_JNI__
|