Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ActiveAE: nail sampling rate to 48khz for transcode

  • Loading branch information...
commit bfdb993abafe7e0b3ebe5518d4cc323ed916049e 1 parent 758ef97
@FernetMenta FernetMenta authored
Showing with 1 addition and 8 deletions.
  1. +1 −8 xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
View
9 xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
@@ -896,6 +896,7 @@ void CActiveAE::Configure(AEAudioFormat *desiredFmt)
{
outputFormat = inputFormat;
outputFormat.m_dataFormat = AE_FMT_FLOATP;
+ outputFormat.m_sampleRate = 48000;
if (g_advancedSettings.m_audioResample)
{
@@ -903,14 +904,6 @@ void CActiveAE::Configure(AEAudioFormat *desiredFmt)
CLog::Log(LOGINFO, "CActiveAE::Configure - Forcing samplerate to %d", inputFormat.m_sampleRate);
}
- // check for valid sampling rates
- if (inputFormat.m_sampleRate != 48000 &&
- inputFormat.m_sampleRate != 44100 &&
- inputFormat.m_sampleRate != 32000)
- {
- outputFormat.m_sampleRate = 48000;
- }
-
// setup encoder
if (!m_encoder)
{
Please sign in to comment.
Something went wrong with that request. Please try again.