[Audio] Update AI_SetFrequency for android

This commit is contained in:
zilmar 2017-10-24 21:53:34 +11:00
parent 9cc1bcef0a
commit 2e3200803f
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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);