Skip to content
This repository
Browse code

ActiveAE: nail sampling rate to 48khz for transcode

  • Loading branch information...
commit bfdb993abafe7e0b3ebe5518d4cc323ed916049e 1 parent 758ef97
Rainer Hochecker authored September 03, 2013
9  xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
@@ -896,6 +896,7 @@ void CActiveAE::Configure(AEAudioFormat *desiredFmt)
896 896
     {
897 897
       outputFormat = inputFormat;
898 898
       outputFormat.m_dataFormat = AE_FMT_FLOATP;
  899
+      outputFormat.m_sampleRate = 48000;
899 900
 
900 901
       if (g_advancedSettings.m_audioResample)
901 902
       {
@@ -903,14 +904,6 @@ void CActiveAE::Configure(AEAudioFormat *desiredFmt)
903 904
         CLog::Log(LOGINFO, "CActiveAE::Configure - Forcing samplerate to %d", inputFormat.m_sampleRate);
904 905
       }
905 906
 
906  
-      // check for valid sampling rates
907  
-      if (inputFormat.m_sampleRate != 48000 &&
908  
-          inputFormat.m_sampleRate != 44100 &&
909  
-          inputFormat.m_sampleRate != 32000)
910  
-      {
911  
-        outputFormat.m_sampleRate = 48000;
912  
-      }
913  
-
914 907
       // setup encoder
915 908
       if (!m_encoder)
916 909
       {

0 notes on commit bfdb993

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