Skip to content

Commit

Permalink
opensl: fix stream type for ringtone
Browse files Browse the repository at this point in the history
Was using SL_ANDROID_STREAM_NOTIFICATION
should be SL_ANDROID_STREAM_RING

Fixes #1945
  • Loading branch information
philburk committed Dec 11, 2023
1 parent 51e7699 commit ed802f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/opensles/AudioOutputStreamOpenSLES.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ static SLuint32 OpenSLES_convertOutputUsage(Usage oboeUsage) {
openslStream = SL_ANDROID_STREAM_ALARM;
break;
case Usage::Notification:
case Usage::NotificationRingtone:
case Usage::NotificationEvent:
openslStream = SL_ANDROID_STREAM_NOTIFICATION;
break;
case Usage::NotificationRingtone:
openslStream = SL_ANDROID_STREAM_RING;
break;
case Usage::AssistanceAccessibility:
case Usage::AssistanceNavigationGuidance:
case Usage::AssistanceSonification:
Expand Down

0 comments on commit ed802f7

Please sign in to comment.