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

@@ -9,7 +9,7 @@ SDL_Window *sdlWindow;
int main(int argc, char **argv) {
SDL_Init(SDL_INIT_EVERYTHING);
sdlWindow = SDL_CreateWindow("JailAudio", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 320, 240, SDL_WINDOW_SHOWN);
JA_Init();
JA_Init(48000, AUDIO_S16, 2);
JA_PlayMusic("intro2.ogg");
JA_Sound peiv = JA_LoadSound("menu_select.wav");