Guest User

Untitled

a guest
May 24th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. diff --git a/xbmc/cores/AudioRenderers/ALSADirectSound.cpp b/xbmc/cores/AudioRenderers/ALSADirectSound.cpp
  2. index 1e766c3..dcc4901 100644
  3. --- a/xbmc/cores/AudioRenderers/ALSADirectSound.cpp
  4. +++ b/xbmc/cores/AudioRenderers/ALSADirectSound.cpp
  5. @@ -60,9 +60,16 @@ bool CALSADirectSound::Initialize(IAudioCallback* pCallback, const CStdString& d
  6. PCM_FRONT_CENTER, PCM_LOW_FREQUENCY,
  7. PCM_SIDE_LEFT , PCM_SIDE_RIGHT
  8. };
  9. -
  10. + static enum PCMChannels HDMIChannelMap[] = { PCM_FRONT_LEFT, PCM_FRONT_RIGHT
  11. + , PCM_FRONT_CENTER, PCM_LOW_FREQUENCY
  12. + , PCM_BACK_LEFT, PCM_BACK_RIGHT
  13. + , PCM_FRONT_LEFT_OF_CENTER, PCM_FRONT_RIGHT_OF_CENTER
  14. + , PCM_BACK_CENTER, PCM_SIDE_LEFT, PCM_SIDE_RIGHT};
  15. CStdString deviceuse;
  16.  
  17. +
  18. + enum PCMChannels *output_map = HDMIChannelMap;
  19. +
  20. /* setup the channel mapping */
  21. m_uiDataChannels = iChannels;
  22. m_remap.Reset();
  23. @@ -76,7 +83,7 @@ bool CALSADirectSound::Initialize(IAudioCallback* pCallback, const CStdString& d
  24. while(outLayout[ch] != PCM_INVALID)
  25. {
  26. for(map = 0; map < 8; ++map)
  27. - if (outLayout[ch] == ALSAChannelMap[map])
  28. + if (outLayout[ch] == output_map[map])
  29. {
  30. if (map > outChannels)
  31. outChannels = map;
  32. @@ -85,7 +92,7 @@ bool CALSADirectSound::Initialize(IAudioCallback* pCallback, const CStdString& d
  33. ++ch;
  34. }
  35.  
  36. - m_remap.SetOutputFormat(++outChannels, ALSAChannelMap);
  37. + m_remap.SetOutputFormat(++outChannels, output_map);
  38. if (m_remap.CanRemap())
  39. {
  40. iChannels = outChannels;
Add Comment
Please, Sign In to add comment