Skip to content

Commit

Permalink
ActiveAE: nail sampling rate to 48khz for transcode
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Sep 3, 2013
1 parent 758ef97 commit bfdb993
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
Expand Up @@ -896,21 +896,14 @@ void CActiveAE::Configure(AEAudioFormat *desiredFmt)
{
outputFormat = inputFormat;
outputFormat.m_dataFormat = AE_FMT_FLOATP;
outputFormat.m_sampleRate = 48000;

if (g_advancedSettings.m_audioResample)
{
outputFormat.m_sampleRate = g_advancedSettings.m_audioResample;
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)
{
Expand Down

0 comments on commit bfdb993

Please sign in to comment.