|
|
|
|
@ -24,6 +24,7 @@ SDL_Window * window;
|
|
|
|
|
SDL_Renderer * render;
|
|
|
|
|
SDL_Texture *textureVolume = NULL;
|
|
|
|
|
SDL_Texture *textureSlide = NULL;
|
|
|
|
|
SDL_Texture *textureProgressRect = NULL;
|
|
|
|
|
SDL_Event evento;
|
|
|
|
|
xmp_context ctx;
|
|
|
|
|
|
|
|
|
|
@ -46,7 +47,7 @@ int refreshVolumeArea(int iv){
|
|
|
|
|
|
|
|
|
|
static void playBuffer(void *udata, Uint8 *stream, int len)
|
|
|
|
|
{
|
|
|
|
|
if (xmp_play_buffer((xmp_context)udata, stream, len, 0) < 0){ modPlaying = 0; }
|
|
|
|
|
if (xmp_play_buffer((xmp_context)udata, stream, len, 0) < 0){ modPlaying = 0; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int initAudio(xmp_context ctx) {
|
|
|
|
|
@ -99,6 +100,7 @@ int loadSlide(int nslide){
|
|
|
|
|
nline = nline +1;
|
|
|
|
|
}
|
|
|
|
|
fclose(fp);
|
|
|
|
|
nline = nline - 1;
|
|
|
|
|
if (line){ free(line); };
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|