Frequency, format and channels are configurable
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
#pragma once
|
||||
#include <SDL2/SDL.h>
|
||||
|
||||
typedef struct JA_Sound_t *JA_Sound;
|
||||
|
||||
void JA_Init();
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user