Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

SoftAE: Use resampling quality control from GUISettings

  • Loading branch information...
commit 9b76009e586163df042616fe809d8576e961f2e2 1 parent 3dafb60
@Karlson2k authored
View
7 xbmc/cores/AudioEngine/Engines/SoftAE/SoftAE.cpp
@@ -532,7 +532,8 @@ void CSoftAE::OnSettingsChange(const std::string& setting)
setting == "audiooutput.channels" ||
setting == "audiooutput.useexclusivemode" ||
setting == "audiooutput.multichannellpcm" ||
- setting == "audiooutput.stereoupmix")
+ setting == "audiooutput.stereoupmix" ||
+ setting == "audiooutput.resamplequality")
{
OpenSink();
}
@@ -556,6 +557,8 @@ void CSoftAE::LoadSettings()
if (m_stereoUpmix)
CLog::Log(LOGINFO, "CSoftAE::LoadSettings - Stereo upmix is enabled");
+ m_resampleQuality = (enum AEQuality) g_guiSettings.GetInt("audiooutput.resamplequality");
+
/* load the configuration */
m_stdChLayout = AE_CH_LAYOUT_2_0;
switch (g_guiSettings.GetInt("audiooutput.channels"))
@@ -776,7 +779,7 @@ IAEStream *CSoftAE::MakeStream(enum AEDataFormat dataFormat, unsigned int sample
ASSERT(encodedSampleRate);
CSingleLock streamLock(m_streamLock);
- CSoftAEStream *stream = new CSoftAEStream(dataFormat, sampleRate, encodedSampleRate, channelLayout, options);
+ CSoftAEStream *stream = new CSoftAEStream(dataFormat, sampleRate, encodedSampleRate, channelLayout, options, m_resampleQuality);
m_newStreams.push_back(stream);
streamLock.Leave();
// this is really needed here
View
1  xbmc/cores/AudioEngine/Engines/SoftAE/SoftAE.h
@@ -134,6 +134,7 @@ class CSoftAE : public IThreadedAE
std::string m_deviceFriendlyName;
bool m_audiophile;
bool m_stereoUpmix;
+ AEQuality m_resampleQuality;
/* internal vars */
bool m_running, m_reOpen;
Please sign in to comment.
Something went wrong with that request. Please try again.