mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 21:13:05 +01:00
Merge pull request #19865 from janisozaur/atomic-audio-release
Make audio source release status atomic
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "AudioFormat.h"
|
||||
|
||||
#include <SDL.h>
|
||||
#include <atomic>
|
||||
#include <memory>
|
||||
#include <openrct2/audio/AudioSource.h>
|
||||
#include <vector>
|
||||
@@ -28,7 +29,7 @@ namespace OpenRCT2::Audio
|
||||
class SDLAudioSource : public IAudioSource
|
||||
{
|
||||
private:
|
||||
bool _released{};
|
||||
std::atomic<bool> _released{};
|
||||
|
||||
public:
|
||||
void Release() override;
|
||||
|
||||
Reference in New Issue
Block a user