Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[aml] fixed passthough when using dvdplayer instead of amlplayer

  • Loading branch information...
commit 99444775a44a70ea3f2e60cb8d01f1f6a6c43512 1 parent 45caf2a
@davilla davilla authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 xbmc/cores/AudioEngine/Sinks/AESinkALSA.cpp
View
10 xbmc/cores/AudioEngine/Sinks/AESinkALSA.cpp
@@ -33,6 +33,9 @@
#include "utils/MathUtils.h"
#include "threads/SingleLock.h"
#include "settings/GUISettings.h"
+#if defined(HAS_AMLPLAYER)
+#include "cores/amlplayer/AMLUtils.h"
+#endif
#define ALSA_OPTIONS (SND_PCM_NONBLOCK | SND_PCM_NO_AUTO_FORMAT | SND_PCM_NO_AUTO_CHANNELS | SND_PCM_NO_AUTO_RESAMPLE)
#define ALSA_PERIODS 16
@@ -141,6 +144,13 @@ bool CAESinkALSA::Initialize(AEAudioFormat &format, std::string &device)
m_channelLayout = GetChannelLayout(format);
m_passthrough = false;
}
+#if defined(HAS_AMLPLAYER)
+ if (aml_present())
+ {
+ aml_set_audio_passthrough(m_passthrough);
+ device = "default";
+ }
+#endif
if (m_channelLayout.Count() == 0)
{
Please sign in to comment.
Something went wrong with that request. Please try again.