Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Use of deprecated fluid_synth_set_sample_rate #7885
Version of OpenTTD
Compiles without warnings
Steps to reproduce
The annoying thing with this is that the setting needs to be set before creating the synthesizer, but the sample rate to use is only known after setting the music stream callback from the mixer. So the music callback needs to handle the situation where the synthesizer is not yet ready, which means a mutex and atomic flag are definitely needed.