This repository has been archived by the owner on Oct 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
1,450 additions
and
255 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#include "global/types.h" | ||
#include "specific/s_music.h" | ||
|
||
bool __cdecl Music_Init(void) | ||
{ | ||
return S_Music_Init(); | ||
} | ||
|
||
void __cdecl Music_Shutdown(void) | ||
{ | ||
S_Music_Shutdown(); | ||
} | ||
|
||
void __cdecl Music_Play(int16_t track_id, bool is_looped) | ||
{ | ||
S_Music_Play(track_id, is_looped); | ||
} | ||
|
||
void __cdecl Music_Stop(void) | ||
{ | ||
S_Music_Stop(); | ||
} | ||
|
||
bool __cdecl Music_PlaySynced(int32_t track_id) | ||
{ | ||
return S_Music_PlaySynced(track_id); | ||
} | ||
|
||
uint32_t __cdecl Music_GetFrames(void) | ||
{ | ||
return S_Music_GetFrames(); | ||
} | ||
|
||
void __cdecl Music_SetVolume(int32_t volume) | ||
{ | ||
S_Music_SetVolume(volume); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#pragma once | ||
|
||
#include "global/types.h" | ||
|
||
bool __cdecl Music_Init(void); | ||
void __cdecl Music_Shutdown(void); | ||
void __cdecl Music_Play(int16_t track_id, bool is_looped); | ||
void __cdecl Music_Stop(void); | ||
bool __cdecl Music_PlaySynced(int32_t track_id); | ||
uint32_t __cdecl Music_GetFrames(void); | ||
void __cdecl Music_SetVolume(int32_t volume); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include "game/sound.h" | ||
|
||
#include "global/vars.h" | ||
|
||
void __cdecl Sound_SetMasterVolume(int32_t volume) | ||
{ | ||
g_MasterVolume = volume; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
|
||
#include "global/types.h" | ||
|
||
void __cdecl Sound_SetMasterVolume(int32_t volume); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.