mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 08:45:00 +01:00
Revert audio changes (#20259)
* Revert audio changes * Revert changelog.txt
This commit is contained in:
committed by
GitHub
parent
4f6ad87e25
commit
a1d30b6db0
@@ -2,7 +2,6 @@
|
||||
------------------------------------------------------------------------
|
||||
- Feature: [#15660] Ability to show window buttons on the left.
|
||||
- Feature: [OpenMusic#41] Official Title Theme by Allister Brimble.
|
||||
- Improved: [#20200] Allow audio files to play to up to 44100 Hz sample rate (from 22050 Hz).
|
||||
- Improved: [#20243] Add new colour preset to Side Friction Roller Coaster (using the new colours).
|
||||
- Change: [#20110] Fix a few RCT1 build height parity discrepancies.
|
||||
- Fix: [#6152] Camera and UI are no longer locked at 40 Hz, providing a smoother experience.
|
||||
|
||||
@@ -27,10 +27,10 @@ void AudioMixer::Init(const char* device)
|
||||
Close();
|
||||
|
||||
SDL_AudioSpec want = {};
|
||||
want.freq = 44100;
|
||||
want.freq = 22050;
|
||||
want.format = AUDIO_S16SYS;
|
||||
want.channels = 2;
|
||||
want.samples = 256;
|
||||
want.samples = 2048;
|
||||
want.callback = [](void* arg, uint8_t* dst, int32_t length) -> void {
|
||||
auto* mixer = static_cast<AudioMixer*>(arg);
|
||||
mixer->GetNextAudioChunk(dst, static_cast<size_t>(length));
|
||||
|
||||
Reference in New Issue
Block a user