[Audio] Update AI_SetFrequency for android
This commit is contained in:
parent
9cc1bcef0a
commit
2e3200803f
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue