mirror of
https://github.com/libretro/RetroArch
synced 2025-01-25 06:35:30 +00:00
(OpenSL) Get rid of Android-specific hack
This commit is contained in:
parent
cdacad974b
commit
5598c75071
@ -132,12 +132,9 @@ static void *sl_init(const char *device, unsigned rate, unsigned latency)
|
||||
GOTO_IF_FAIL(SLEngineItf_CreateOutputMix(sl->engine, &sl->output_mix, 0, NULL, NULL));
|
||||
GOTO_IF_FAIL(SLObjectItf_Realize(sl->output_mix, SL_BOOLEAN_FALSE));
|
||||
|
||||
int api_level = android_get_sdk_version();
|
||||
(void)api_level;
|
||||
|
||||
sl->buf_count = 8;
|
||||
|
||||
RARCH_LOG("[SLES] : Android API level [%d] detected, setting audio latency (buffer size: [%d])..\n", api_level, sl->buf_count * BUFFER_SIZE);
|
||||
RARCH_LOG("[SLES] : Setting audio latency (buffer size: [%d])..\n", sl->buf_count * BUFFER_SIZE);
|
||||
|
||||
fmt_pcm.formatType = SL_DATAFORMAT_PCM;
|
||||
fmt_pcm.numChannels = 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user