Skip to content

Commit 59e594e

Browse files
pbodilisdturner
authored andcommitted
[code] fix bad copy/paste + remove empty lines
1 parent 97baa8d commit 59e594e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/opensles/AudioOutputStreamOpenSLES.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static SLuint32 OpenSLES_convertOutputUsage(Usage oboeUsage) {
5252
openslStream = SL_ANDROID_STREAM_SYSTEM;
5353
break;
5454
case Usage::Game:
55-
openslStream = SL_ANDROID_RECORDING_PRESET_VOICE_COMMUNICATION;
55+
openslStream = SL_ANDROID_STREAM_MEDIA;
5656
break;
5757
case Usage::Assistant:
5858
default:
@@ -202,8 +202,6 @@ Result AudioOutputStreamOpenSLES::open() {
202202
}
203203
}
204204

205-
206-
207205
result = (*mObjectInterface)->Realize(mObjectInterface, SL_BOOLEAN_FALSE);
208206
if (SL_RESULT_SUCCESS != result) {
209207
LOGE("Realize player object result:%s", getSLErrStr(result));

0 commit comments

Comments
 (0)