forked from JailDoctor/JailAudio
16 lines
405 B
C
16 lines
405 B
C
#pragma once
|
|
#include <SDL2/SDL.h>
|
|
|
|
typedef struct JA_Sound_t *JA_Sound;
|
|
|
|
void JA_Init(const int freq, const SDL_AudioFormat format, const int channels);
|
|
|
|
void JA_PlayMusic(const char* filename, const bool loop = true);
|
|
void JA_PauseMusic();
|
|
void JA_RestartMusic();
|
|
void JA_StopMusic();
|
|
|
|
JA_Sound JA_LoadSound(const char* filename);
|
|
void JA_PlaySound(JA_Sound sound);
|
|
void JA_DeleteSound(JA_Sound sound);
|