New stb_vorbis version added. OGG loading time optimized.

This commit is contained in:
2022-08-28 09:07:37 +02:00
parent 1ba349f6c3
commit 52df28a4f0
4 changed files with 88 additions and 51 deletions

View File

@@ -1,6 +1,7 @@
#include "jail_audio.h"
#include <stdlib.h>
#include <SDL2/SDL.h>
#include <stdio.h>
SDL_Event event;
SDL_Window *sdlWindow;
@@ -15,6 +16,10 @@ int main(int argc, char **argv) {
JA_Sound peiv = JA_LoadSound("menu_select.wav");
int channel = -1;
char str[80];
sprintf(str, "JailAudio: %i", JA_GetTime());
SDL_SetWindowTitle(sdlWindow, str);
JA_PlayMusic(music, true);
int volume = 128;
bool should_exit = false;