Primer commit
This commit is contained in:
28
jsound.h
Executable file
28
jsound.h
Executable file
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
#include "SDL2/SDL_mixer.h"
|
||||
|
||||
typedef Mix_Chunk JS_Sound;
|
||||
|
||||
bool JS_Init();
|
||||
|
||||
void JS_LoadMusic(char *musicFilename);
|
||||
|
||||
void JS_SetMusicVolume(int volume);
|
||||
|
||||
void JS_PlayMusic(int loops);
|
||||
|
||||
void JS_PauseMusic();
|
||||
|
||||
void JS_FadeOutMusic();
|
||||
|
||||
bool JS_MusicPlaying();
|
||||
|
||||
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();
|
||||
Reference in New Issue
Block a user