Updated and fixed audio

This commit is contained in:
2025-12-25 19:41:19 +01:00
parent 68b35ea57b
commit 735e966608
8 changed files with 75 additions and 52 deletions

View File

@ -105,7 +105,7 @@ void VideoState::startAudioIfReady() {
if (m_audioPcm.empty()) return;
// Use the existing audio output path (same device as music/SFX).
if (auto sys = ::AudioManager::get()) sys->playSfx(m_audioPcm, m_audioChannels, m_audioRate, 1.0f);
if (auto sys = AudioManager::get()) sys->playSfx(m_audioPcm, m_audioChannels, m_audioRate, 1.0f);
m_audioStarted = true;
}