Skip to content

Commit

Permalink
(OpenSL) Get rid of Android-specific hack
Browse files Browse the repository at this point in the history
  • Loading branch information
twinaphex committed Dec 11, 2012
1 parent cdacad9 commit 5598c75
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions audio/opensl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5598c75

Please sign in to comment.