forked from JailDoctor/JailAudio
WAVs can loop, and OGG and WAV loops can be finite
This commit is contained in:
@@ -7,7 +7,7 @@ typedef struct JA_Music_t *JA_Music;
|
||||
void JA_Init(const int freq, const SDL_AudioFormat format, const int channels);
|
||||
|
||||
JA_Music JA_LoadMusic(const char* filename);
|
||||
void JA_PlayMusic(JA_Music music, const bool loop = true);
|
||||
void JA_PlayMusic(JA_Music music, const int loop = -1);
|
||||
void JA_PauseMusic();
|
||||
void JA_ResumeMusic();
|
||||
void JA_StopMusic();
|
||||
@@ -15,5 +15,5 @@ bool JA_IsMusicPlaying();
|
||||
void JA_DeleteMusic(JA_Music music);
|
||||
|
||||
JA_Sound JA_LoadSound(const char* filename);
|
||||
void JA_PlaySound(JA_Sound sound);
|
||||
void JA_PlaySound(JA_Sound sound, const int loop = 0);
|
||||
void JA_DeleteSound(JA_Sound sound);
|
||||
|
||||
Reference in New Issue
Block a user