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
22 changed files
with
1,267 additions
and
151 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
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,11 @@ | ||
#pragma once | ||
|
||
#include <windows.h> | ||
|
||
#define DirectSoundCreate \ | ||
((HRESULT(__stdcall *)( \ | ||
LPCGUID pcGuidDevice, LPDIRECTSOUND * ppDS, \ | ||
LPUNKNOWN pUnkOuter))0x00458CEE) | ||
#define DirectSoundEnumerateA \ | ||
((HRESULT(__stdcall *)( \ | ||
LPDSENUMCALLBACKA pDSEnumCallback, LPVOID pContext))0x00458CE8) |
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 @@ | ||
#include "lib/winmm.h" | ||
|
||
MMRESULT(__stdcall *g_MM_auxGetDevCapsA) | ||
(UINT_PTR uDeviceID, LPAUXCAPSA pac, UINT cbac); | ||
UINT(__stdcall *g_MM_auxGetNumDevs)(void) = NULL; | ||
MMRESULT(__stdcall *g_MM_auxSetVolume)(UINT uDeviceID, DWORD dwVolume) = NULL; | ||
MCIERROR(__stdcall *g_MM_mciSendCommandA) | ||
(MCIDEVICEID mciId, UINT uMsg, DWORD_PTR dwParam1, DWORD_PTR dwParam2) = NULL; | ||
MCIERROR(__stdcall *g_MM_mciSendStringA) | ||
(LPCSTR lpszCommand, LPSTR lpszReturnString, UINT cchReturn, | ||
HANDLE hwndCallback) = NULL; |
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,19 @@ | ||
#pragma once | ||
|
||
#include <windows.h> | ||
|
||
extern MMRESULT(__stdcall *g_MM_auxGetDevCapsA)( | ||
UINT_PTR uDeviceID, LPAUXCAPSA pac, UINT cbac); | ||
extern UINT(__stdcall *g_MM_auxGetNumDevs)(void); | ||
extern MMRESULT(__stdcall *g_MM_auxSetVolume)(UINT uDeviceID, DWORD dwVolume); | ||
extern MCIERROR(__stdcall *g_MM_mciSendCommandA)( | ||
MCIDEVICEID mciId, UINT uMsg, DWORD_PTR dwParam1, DWORD_PTR dwParam2); | ||
extern MCIERROR(__stdcall *g_MM_mciSendStringA)( | ||
LPCSTR lpszCommand, LPSTR lpszReturnString, UINT cchReturn, | ||
HANDLE hwndCallback); | ||
|
||
#define auxGetDevCapsA g_MM_auxGetDevCapsA | ||
#define auxGetNumDevs g_MM_auxGetNumDevs | ||
#define auxSetVolume g_MM_auxSetVolume | ||
#define mciSendCommandA g_MM_mciSendCommandA | ||
#define mciSendStringA g_MM_mciSendStringA |
Oops, something went wrong.