Frequency, format and channels are configurable
This commit is contained in:
2
main.cpp
2
main.cpp
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user