mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-01-23 21:45:00 +03:00
extern "C" fix for windows builds
This commit is contained in:
parent
304a0a5288
commit
de6f28df81
@ -73,6 +73,10 @@ typedef void (*AudioCustomUpdateFunction)(void);
|
||||
#define AUDIOLOAD_SYNC 0
|
||||
#define AUDIOLOAD_ASYNC 1
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef enum {
|
||||
/* 0 */ ADSR_STATE_DISABLED,
|
||||
/* 1 */ ADSR_STATE_INITIAL,
|
||||
@ -1230,4 +1234,8 @@ extern f32 gHeadsetPanVolume[128];
|
||||
extern f32 gStereoPanVolume[128];
|
||||
extern f32 gDefaultPanVolume[128];
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -821,9 +821,9 @@ void AudioLoad_Init(void) {
|
||||
|
||||
gAudioResetTimer = 0;
|
||||
|
||||
for (i = 0; i < gAudioHeapSize / 8; i++) {
|
||||
*((u64*) gAudioHeap + i) = 0;
|
||||
}
|
||||
// for (i = 0; i < gAudioHeapSize / 8; i++) {
|
||||
// *((u64*) gAudioHeap + i) = 0;
|
||||
// }
|
||||
|
||||
clearContext = gAudioContextStart;
|
||||
dwordsLeft = ((uintptr_t) gAudioContextEnd - (uintptr_t) gAudioContextStart) / 8;
|
||||
|
Loading…
Reference in New Issue
Block a user