is there any chance to see a re-introduction of the option to manually change the sample rate in the audio settings (GUI)?
i've been using scummvm for over 20 years and i'm pretty sure that this was possible in the early 2000s.
before posting here i did some searching and found out that the default sample rate was set to 44.1 kHz in 2014 which had been 22 kHz before.
an option to manually change the sample rate from within the GUI would have two advantages from my point of view:
1. setting the sample rate to a value lower than 44.1 kHz can provide a more authentic game experience, e. g. for 8bit games like C64 version of Maniac Mansion
2. maybe the usage of less system resources for audio could lead to a more fluent gaming experience with ScummVM ports for older systems like PS3.
changing the audio sample rate
Moderator: ScummVM Team
Re: changing the audio sample rate
I do not think we ever had it exposed in the GUI. You can, however, specify it with a command line parameter '--output-rate=RATE'
Eugene
Eugene
Re: changing the audio sample rate
Or you can add the output_rate=RATE setting manually in the scummvm.ini config file. The RATE is in Hz, so for example 22050. The option is documented here: https://docs.scummvm.org/en/v2.9.0/adva ... ation-keys
And you have a good memory. There indeed was an option in the GUI for the audio rate a long time ago (priori to the 2.0.0 release). It was removed from the GUI in 2017 because it was not working properly (it only works on some platforms, and changing it in the GUI required closing a restarting ScummVM to take effect). It was only kept as an obscure setting (which required either using the command line, or editing manually the config file).
Edit: The relevant commit is https://github.com/scummvm/scummvm/commit/eb4e9fe1d4
And you have a good memory. There indeed was an option in the GUI for the audio rate a long time ago (priori to the 2.0.0 release). It was removed from the GUI in 2017 because it was not working properly (it only works on some platforms, and changing it in the GUI required closing a restarting ScummVM to take effect). It was only kept as an obscure setting (which required either using the command line, or editing manually the config file).
Edit: The relevant commit is https://github.com/scummvm/scummvm/commit/eb4e9fe1d4
Re: changing the audio sample rate
thanks to the both of you for replying.
i know about the possibility to manually edit the .ini file. but that usually takes more effort on the respective devices like a PS3 or a cell phone since that would require me to involve my computer in the process.
an option on a global level (i. e. not even for every single game) in the GUI of ScummVM would be nice and comfortable. depending on the game you would just change the sample rate in the GUI and restart scummvm. well, in theory...
i know about the possibility to manually edit the .ini file. but that usually takes more effort on the respective devices like a PS3 or a cell phone since that would require me to involve my computer in the process.
an option on a global level (i. e. not even for every single game) in the GUI of ScummVM would be nice and comfortable. depending on the game you would just change the sample rate in the GUI and restart scummvm. well, in theory...
Re: changing the audio sample rate
Does the "output_rate=" setting apply to all the diffent emulated sound options. Setting it to 22050 would affect Adlib, PC speker and MT32 emulation?criezy wrote: ↑Mon Mar 03, 2025 1:43 pm Or you can add the output_rate=RATE setting manually in the scummvm.ini config file. The RATE is in Hz, so for example 22050. The option is documented here: https://docs.scummvm.org/en/v2.9.0/adva ... ration-key
What is the range of that setting? Can it be set to 48, 96 or 192kHz
Can the bit depth be changed as well? Can it handle 8, 16 and 24bit output.