Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

audio: fix 48 kHz bug on NTSC consoles and missing static variable initialization #412

Merged
merged 1 commit into from
Aug 18, 2023

Conversation

Polprzewodnikowy
Copy link
Contributor

This commit fixes 48 kHz playback on NTSC consoles. Previously samplesize <= dacrate / 66 requirement was not met causing playback to be slower than expected.
playing_queue is now reinitialized when audio_init is called again. This caused corrupted playback when audio_init needed to be called after first audio initialization (e.g. to change frequency or number of buffers).
Some AI registers are now cleared to stop audio playback correctly thus eliminating any undesired clicks and pops.

@rasky rasky merged commit 251c821 into DragonMinded:unstable Aug 18, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants