Skip to content

Commit

Permalink
[AE] settings: add new advanced settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoffrey McRae authored and Jonathan Marshall committed May 9, 2012
1 parent cdeef46 commit f2a704b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions xbmc/settings/AdvancedSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ void CAdvancedSettings::Initialize()
m_audioApplyDrc = true;
m_dvdplayerIgnoreDTSinWAV = false;
m_audioResample = 0;
m_audioForceDirectSound = false;
m_audioAudiophile = false;
m_allChannelStereo = false;
m_audioSinkBufferDurationMsec = 50;

//default hold time of 25 ms, this allows a 20 hertz sine to pass undistorted
m_limiterHold = 0.025f;
Expand Down Expand Up @@ -358,6 +362,11 @@ void CAdvancedSettings::ParseSettingsFile(const CStdString &file)
XMLUtils::GetInt(pElement, "percentseekbackwardbig", m_musicPercentSeekBackwardBig, -100, 0);

XMLUtils::GetInt(pElement, "resample", m_audioResample, 0, 192000);
XMLUtils::GetBoolean(pElement, "forceDirectSound", m_audioForceDirectSound);
XMLUtils::GetBoolean(pElement, "audiophile", m_audioAudiophile);
XMLUtils::GetBoolean(pElement, "allchannelstereo", m_allChannelStereo);
XMLUtils::GetString(pElement, "transcodeto", m_audioTranscodeTo);
XMLUtils::GetInt(pElement, "audiosinkbufferdurationmsec", m_audioSinkBufferDurationMsec);

TiXmlElement* pAudioExcludes = pElement->FirstChildElement("excludefromlisting");
if (pAudioExcludes)
Expand Down
5 changes: 5 additions & 0 deletions xbmc/settings/AdvancedSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ class CAdvancedSettings
float m_audioPlayCountMinimumPercent;
bool m_dvdplayerIgnoreDTSinWAV;
int m_audioResample;
bool m_audioForceDirectSound;
bool m_audioAudiophile;
bool m_allChannelStereo;
int m_audioSinkBufferDurationMsec;
CStdString m_audioTranscodeTo;
float m_limiterHold;
float m_limiterRelease;

Expand Down

0 comments on commit f2a704b

Please sign in to comment.