New stb_vorbis version added. OGG loading time optimized.
This commit is contained in:
5
main.cpp
5
main.cpp
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user