Skip to content
This repository
Browse code

[AE/CA] - if m_volume of the stream is set (e.x. <= 1.0) we have to a…

…pply the softvolume to the stream. Before we only applied the volume on crossfade. Unfortunatly the fade was finished before the stream was finished - so the last frames of the sream during crossfade had full volume applied (you can imagine how this disturbs the fading ;) ).
  • Loading branch information...
commit 35db51612ffee0c505cc4365a07438808b4b6a19 1 parent 4709873
Memphiz authored November 22, 2012
5  xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioAEStream.cpp
@@ -490,7 +490,10 @@ unsigned int CCoreAudioAEStream::GetFrames(uint8_t *buffer, unsigned int size)
490 490
         if (m_volume <= m_fadeTarget)
491 491
           m_fadeRunning = false;
492 492
       }
493  
-
  493
+    }
  494
+    
  495
+    if (m_volume < 1.0f)
  496
+    {
494 497
 #ifdef __SSE__
495 498
       CAEUtil::SSEMulArray(floatBuffer, m_volume, samples);
496 499
 #else

0 notes on commit 35db516

Please sign in to comment.
Something went wrong with that request. Please try again.