From 2e3200803fd78fb7ef037bb26fbb3f87fa6a7c1a Mon Sep 17 00:00:00 2001 From: zilmar Date: Tue, 24 Oct 2017 21:53:34 +1100 Subject: [PATCH] [Audio] Update AI_SetFrequency for android --- Source/Project64-audio/Driver/OpenSLES.cpp | 4 ++-- Source/Project64-audio/Driver/OpenSLES.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Project64-audio/Driver/OpenSLES.cpp b/Source/Project64-audio/Driver/OpenSLES.cpp index b93b46353..52d227204 100644 --- a/Source/Project64-audio/Driver/OpenSLES.cpp +++ b/Source/Project64-audio/Driver/OpenSLES.cpp @@ -361,7 +361,7 @@ void queueCallback(SLAndroidSimpleBufferQueueItf caller, void *context) } #endif -void OpenSLESDriver::AI_SetFrequency(uint32_t freq) +void OpenSLESDriver::AI_SetFrequency(uint32_t freq, uint32_t BufferSize) { WriteTrace(TraceAudioInitShutdown, TraceDebug, "Start (freq: %d)", freq); if (freq < 4000) @@ -588,7 +588,7 @@ void OpenSLESDriver::AI_SetFrequency(uint32_t freq) void OpenSLESDriver::AI_Startup(void) { - AI_SetFrequency(DEFAULT_FREQUENCY); + AI_SetFrequency(DEFAULT_FREQUENCY, 0); } void OpenSLESDriver::AI_Shutdown(void) diff --git a/Source/Project64-audio/Driver/OpenSLES.h b/Source/Project64-audio/Driver/OpenSLES.h index 37bc579e9..33ca1955c 100644 --- a/Source/Project64-audio/Driver/OpenSLES.h +++ b/Source/Project64-audio/Driver/OpenSLES.h @@ -24,7 +24,7 @@ class OpenSLESDriver : public: void AI_Startup(void); void AI_Shutdown(void); - void AI_SetFrequency(uint32_t freq); + void AI_SetFrequency(uint32_t freq, uint32_t BufferSize); void AI_LenChanged(uint8_t *start, uint32_t length); void AI_Update(bool Wait);