mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-12 01:14:33 +00:00
CoreAudioStream: Ensure stream is destroyed before buffer
Fixes potential race during stream shutdown.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user