Reformat to something more readable for me :3
This commit is contained in:
+7
-4
@@ -6,15 +6,18 @@
|
||||
|
||||
SM64PlaySoundFunctionPtr g_play_sound_func = NULL;
|
||||
|
||||
extern void play_sound( uint32_t soundBits, f32 *pos ) {
|
||||
if ( g_is_audio_initialized ) {
|
||||
DEBUG_PRINT("$ play_sound(%d) request %d; pos %f %f %f\n", soundBits,sSoundRequestCount,pos[0],pos[1],pos[2]);
|
||||
extern void play_sound(uint32_t soundBits, f32 *pos)
|
||||
{
|
||||
if (g_is_audio_initialized)
|
||||
{
|
||||
DEBUG_PRINT("$ play_sound(%d) request %d; pos %f %f %f\n", soundBits, sSoundRequestCount, pos[0], pos[1], pos[2]);
|
||||
sSoundRequests[sSoundRequestCount].soundBits = soundBits;
|
||||
sSoundRequests[sSoundRequestCount].position = pos;
|
||||
sSoundRequestCount++;
|
||||
}
|
||||
|
||||
if ( g_play_sound_func ) {
|
||||
if (g_play_sound_func)
|
||||
{
|
||||
g_play_sound_func(soundBits, pos);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user