CoreAudioStream: Ensure stream is destroyed before buffer

Fixes potential race during stream shutdown.
This commit is contained in:
Stenzek
2025-12-28 22:04:50 +10:00
parent bfa70857e5
commit c4ee79b52a

View File

@@ -136,9 +136,9 @@ bool CoreAudioStream::Initialize(AudioBackend backend, u32 sample_rate, const Au
void CoreAudioStream::Destroy()
{
m_stream.reset();
StretchDestroy();
DestroyBuffer();
m_stream.reset();
m_sample_rate = 0;
m_parameters = AudioStreamParameters();
m_volume = 0;