all repos — mgba @ 2a4ecde790e92a389500aac625f372103d7cf0e5

mGBA Game Boy Advance Emulator

Qt: Change default buffer size to 1536, remove from menu and add more presets
Jeffrey Pfau jeffrey@endrift.com
Sun, 09 Aug 2015 21:47:16 -0700
commit

2a4ecde790e92a389500aac625f372103d7cf0e5

parent

9c5852e89ea26959c7a1872c7cee8d02e11d2317

3 files changed, 18 insertions(+), 17 deletions(-)

jump to
M src/platform/qt/ConfigController.cppsrc/platform/qt/ConfigController.cpp

@@ -107,7 +107,7 @@

m_opts.audioSync = GameController::AUDIO_SYNC; m_opts.videoSync = GameController::VIDEO_SYNC; m_opts.fpsTarget = 60; - m_opts.audioBuffers = 2048; + m_opts.audioBuffers = 1536; m_opts.volume = GBA_AUDIO_VOLUME_MAX; m_opts.logLevel = GBA_LOG_WARN | GBA_LOG_ERROR | GBA_LOG_FATAL | GBA_LOG_STATUS; m_opts.rewindEnable = false;
M src/platform/qt/SettingsView.uisrc/platform/qt/SettingsView.ui

@@ -62,10 +62,10 @@ <property name="editable">

<bool>true</bool> </property> <property name="currentText"> - <string>2048</string> + <string>1536</string> </property> <property name="currentIndex"> - <number>2</number> + <number>3</number> </property> <item> <property name="text">

@@ -74,12 +74,27 @@ </property>

</item> <item> <property name="text"> + <string>768</string> + </property> + </item> + <item> + <property name="text"> <string>1024</string> </property> </item> <item> <property name="text"> + <string>1536</string> + </property> + </item> + <item> + <property name="text"> <string>2048</string> + </property> + </item> + <item> + <property name="text"> + <string>3072</string> </property> </item> <item>
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -987,20 +987,6 @@ m_config->updateOption("frameskip");

avMenu->addSeparator(); - QMenu* buffersMenu = avMenu->addMenu(tr("Audio buffer &size")); - ConfigOption* buffers = m_config->addOption("audioBuffers"); - buffers->connect([this](const QVariant& value) { - emit audioBufferSamplesChanged(value.toInt()); - }, this); - buffers->addValue(tr("512"), 512, buffersMenu); - buffers->addValue(tr("768"), 768, buffersMenu); - buffers->addValue(tr("1024"), 1024, buffersMenu); - buffers->addValue(tr("2048"), 2048, buffersMenu); - buffers->addValue(tr("4096"), 4096, buffersMenu); - m_config->updateOption("audioBuffers"); - - avMenu->addSeparator(); - QMenu* target = avMenu->addMenu(tr("FPS target")); ConfigOption* fpsTargetOption = m_config->addOption("fpsTarget"); fpsTargetOption->connect([this](const QVariant& value) {