From 3ba775ba53c3bb3d5c8d8c53a7806ae2b49acfa6 Mon Sep 17 00:00:00 2001 From: Frank-74 Date: Mon, 21 Jan 2019 08:41:50 +0000 Subject: [PATCH] [Project64-Audio] Remove test writetraces --- Source/Project64-audio/AudioMain.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Source/Project64-audio/AudioMain.cpp b/Source/Project64-audio/AudioMain.cpp index c410270a9..d27782027 100644 --- a/Source/Project64-audio/AudioMain.cpp +++ b/Source/Project64-audio/AudioMain.cpp @@ -120,15 +120,10 @@ EXPORT void CALL AiDacrateChanged(int SystemType) case 7: divider = 15; break; } - BufferSize = ((Frequency / divider) + (int32_t)2.49 & ~0x3); + BufferSize = (Frequency / divider) + 3 & ~0x3; if (hack == 'BH' && SystemType != SYSTEM_PAL) BufferSize -= 16; - WriteTrace(TraceAudioDriver, TraceInfo, "Frequency = %d", Frequency); - WriteTrace(TraceAudioDriver, TraceInfo, "Divider = %.3f", (double)divider); - WriteTrace(TraceAudioDriver, TraceInfo, "Buffer = %d", g_settings->GetBuffer()); - WriteTrace(TraceAudioDriver, TraceInfo, "Buffer Size = %d", BufferSize); - g_SoundDriver->AI_SetFrequency(Frequency, BufferSize); } WriteTrace(TraceAudioInterface, TraceDebug, "Done");