From 0f7a8c739b0d63251ede3729b4c47bdff869593b Mon Sep 17 00:00:00 2001 From: Frank-74 Date: Sun, 15 Oct 2017 17:43:32 +0100 Subject: [PATCH] Update AudioMain.cpp Fix tabs/spaces --- Source/Project64-audio/AudioMain.cpp | 44 ++++++++++++++-------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/Source/Project64-audio/AudioMain.cpp b/Source/Project64-audio/AudioMain.cpp index 260c4648c..70620d379 100644 --- a/Source/Project64-audio/AudioMain.cpp +++ b/Source/Project64-audio/AudioMain.cpp @@ -87,36 +87,36 @@ EXPORT void CALL AiDacrateChanged(int SystemType) } uint32_t Frequency = video_clock / (g_Dacrate + 1); - if (Frequency < 4000) - { - WriteTrace(TraceAudioDriver, TraceDebug, "Not Audio Data!"); - return; - } - else - { - int32_t BufferSize = 0; double audio_clock = 0; - double framerate1 = 59.94004; double framerate2 = 64; double framerate = 0; + if (Frequency < 4000) + { + WriteTrace(TraceAudioDriver, TraceDebug, "Not Audio Data!"); + return; + } + else + { + int32_t BufferSize = 0; double audio_clock = 0; + double framerate1 = 59.94004; double framerate2 = 64; double framerate = 0; - if (g_settings->FPSBuffer() == true) + if (g_settings->FPSBuffer() == true) { framerate = framerate1; } - else + else { framerate = framerate2; } - if (g_settings->TinyBuffer() == true) - { - audio_clock = ((video_clock / framerate) * 2); - } - else - { - audio_clock = ((video_clock / framerate) * 4); - } + if (g_settings->TinyBuffer() == true) + { + audio_clock = ((video_clock / framerate) * 2); + } + else + { + audio_clock = ((video_clock / framerate) * 4); + } - BufferSize = (int32_t)audio_clock / (g_Dacrate) + 1 & ~0x1; - g_SoundDriver->AI_SetFrequency(Frequency, BufferSize); - } + BufferSize = (int32_t)audio_clock / (g_Dacrate) + 1 & ~0x1; + g_SoundDriver->AI_SetFrequency(Frequency, BufferSize); + } } WriteTrace(TraceAudioInterface, TraceDebug, "Done"); }