Frequency, format and channels are configurable

This commit is contained in:
2021-02-02 21:18:07 +01:00
parent 6ce37e56e7
commit 3cc806bd17
3 changed files with 14 additions and 6 deletions

View File

@@ -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();