Skip to content

Commit

Permalink
[Android] Remove AudioTrack ENFORCE flag / set LegacyStreamType
Browse files Browse the repository at this point in the history
  • Loading branch information
peak3d committed Jul 12, 2018
1 parent 305ee0a commit 9ee43ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xbmc/cores/AudioEngine/Sinks/AESinkAUDIOTRACK.cpp
Expand Up @@ -186,7 +186,8 @@ jni::CJNIAudioTrack *CAESinkAUDIOTRACK::CreateAudioTrack(int stream, int sampleR
{
CJNIAudioAttributesBuilder attrBuilder;
attrBuilder.setUsage(CJNIAudioAttributes::USAGE_MEDIA);
attrBuilder.setFlags(CJNIAudioAttributes::FLAG_AUDIBILITY_ENFORCED);
attrBuilder.setContentType(CJNIAudioAttributes::CONTENT_TYPE_MUSIC);
attrBuilder.setLegacyStreamType(CJNIAudioManager::STREAM_MUSIC);

CJNIAudioFormatBuilder fmtBuilder;
fmtBuilder.setChannelMask(channelMask);
Expand Down

0 comments on commit 9ee43ae

Please sign in to comment.