aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeak3d <pfau@peak3d.de>2018-06-20 11:57:58 +0200
committerpeak3d <pfau@peak3d.de>2018-06-20 11:57:58 +0200
commitd68c07fe2ca805e4df2433833ae848deea70d9d4 (patch)
tree71240c9049a9355e30c4441a17ed23f324b9c5bf
parente22caaf2d862c72be6672de124f5111541d376cd (diff)
[Android] Implement SDK21 AudioTrack constructor
-rw-r--r--xbmc/cores/AudioEngine/Sinks/AESinkAUDIOTRACK.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/xbmc/cores/AudioEngine/Sinks/AESinkAUDIOTRACK.cpp b/xbmc/cores/AudioEngine/Sinks/AESinkAUDIOTRACK.cpp
index a99d9743ed..8885830c7e 100644
--- a/xbmc/cores/AudioEngine/Sinks/AESinkAUDIOTRACK.cpp
+++ b/xbmc/cores/AudioEngine/Sinks/AESinkAUDIOTRACK.cpp
@@ -185,11 +185,8 @@ jni::CJNIAudioTrack *CAESinkAUDIOTRACK::CreateAudioTrack(int stream, int sampleR
if (CJNIBase::GetSDKVersion() >= 21)
{
CJNIAudioAttributesBuilder attrBuilder;
- attrBuilder.setContentType(stream == CJNIAudioManager::STREAM_MUSIC
- ? CJNIAudioAttributes::CONTENT_TYPE_MUSIC
- : CJNIAudioAttributes::CONTENT_TYPE_MOVIE);
attrBuilder.setUsage(CJNIAudioAttributes::USAGE_MEDIA);
-// attrBuilder.setFlags(CJNIAudioAttributes::FLAG_AUDIBILITY_ENFORCED);
+ attrBuilder.setFlags(CJNIAudioAttributes::FLAG_AUDIBILITY_ENFORCED);
CJNIAudioFormatBuilder fmtBuilder;
fmtBuilder.setChannelMask(channelMask);