Merge pull request #5241 from MerryMage/stretch

Pitch-Preserving Audio Stretching
This commit is contained in:
Markus Wick
2017-04-12 20:27:26 +02:00
committed by GitHub
11 changed files with 227 additions and 115 deletions

View File

@ -249,6 +249,8 @@ void SConfig::SaveCoreSettings(IniFile& ini)
core->Set("OverrideGCLang", bOverrideGCLanguage);
core->Set("DPL2Decoder", bDPL2Decoder);
core->Set("Latency", iLatency);
core->Set("AudioStretch", m_audio_stretch);
core->Set("AudioStretchMaxLatency", m_audio_stretch_max_latency);
core->Set("MemcardAPath", m_strMemoryCardA);
core->Set("MemcardBPath", m_strMemoryCardB);
core->Set("AgpCartAPath", m_strGbaCartA);
@ -567,6 +569,8 @@ void SConfig::LoadCoreSettings(IniFile& ini)
core->Get("OverrideGCLang", &bOverrideGCLanguage, false);
core->Get("DPL2Decoder", &bDPL2Decoder, false);
core->Get("Latency", &iLatency, 2);
core->Get("AudioStretch", &m_audio_stretch, false);
core->Get("AudioStretchMaxLatency", &m_audio_stretch_max_latency, 80);
core->Get("MemcardAPath", &m_strMemoryCardA);
core->Get("MemcardBPath", &m_strMemoryCardB);
core->Get("AgpCartAPath", &m_strGbaCartA);
@ -827,6 +831,8 @@ void SConfig::LoadDefaults()
bWii = false;
bDPL2Decoder = false;
iLatency = 14;
m_audio_stretch = false;
m_audio_stretch_max_latency = 80;
iPosX = INT_MIN;
iPosY = INT_MIN;

View File

@ -110,6 +110,8 @@ struct SConfig : NonCopyable
bool bDPL2Decoder = false;
int iLatency = 14;
bool m_audio_stretch = false;
int m_audio_stretch_max_latency = 80;
bool bRunCompareServer = false;
bool bRunCompareClient = false;