diff options
author | Chris Robinson <[email protected]> | 2018-11-18 08:14:23 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-18 08:14:23 -0800 |
commit | ef7995cfd086dd1b32d85bf214b66da37e6550c5 (patch) | |
tree | 27e3255f26ca61efc521b5680da2acee90151787 | |
parent | aef52be4324740bdd23c29ce3aef1027357f9694 (diff) |
Fix the initial device refcount
-rw-r--r-- | OpenAL32/Include/alMain.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 95753cc4..e31d0146 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -573,7 +573,7 @@ typedef struct RealMixParams { typedef void (*POSTPROCESS)(ALCdevice *device, ALsizei SamplesToDo); struct ALCdevice_struct { - RefCount ref{0u}; + RefCount ref{1u}; ATOMIC(ALenum) Connected{AL_TRUE}; DeviceType Type{}; |