- Afegit mòdul jshader. - Afegit shader al arxiu de dades - Actualitzat makefile per a la ocasió - Afegit lo de afegir caràcter 0 al final si es vol en jfile - Llevat el flag d'executable que tenien tots els arxius, jo que se perqué
31 lines
532 B
C
31 lines
532 B
C
#pragma once
|
|
#include <SDL2/SDL_mixer.h>
|
|
|
|
typedef Mix_Chunk JS_Sound;
|
|
|
|
bool JS_Init();
|
|
|
|
void JS_LoadMusic(const char *musicFilename);
|
|
|
|
void JS_SetMusicVolume(int volume);
|
|
|
|
void JS_PlayMusic(int loops);
|
|
|
|
void JS_PauseMusic();
|
|
|
|
void JS_FadeOutMusic();
|
|
|
|
bool JS_MusicPlaying();
|
|
|
|
const char* JS_GetMusicName();
|
|
|
|
JS_Sound *JS_LoadSound(char *soundFilename);
|
|
|
|
void JS_SetSoundVolume(JS_Sound *sound, int volume);
|
|
|
|
void JS_PlaySound(JS_Sound *sound);
|
|
|
|
void JS_FreeSound(JS_Sound *sound);
|
|
|
|
void JS_Finalize();
|