diff options
author | Chris Robinson <[email protected]> | 2019-01-01 18:13:33 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-01-01 18:13:33 -0800 |
commit | 399dfca1e3352050a5289be6bcd7b7dce353ccf8 (patch) | |
tree | d6b610e1df68363dad9d11ddcf59830f5c12894b /OpenAL32 | |
parent | 1630a33567b155718b7cb984badb378b140f0889 (diff) |
Rename ALCdevice_struct and ALCcontext_struct
A (possibly contentious?) change in the public headers. Those names were never
part of any specification, and I don't know why the struct names differed from
the actual type name. But with C++, which takes the original struct declaration
as the original name, it was affecting the type's internal symbols.
This shouldn't affect user code since ALCdevice_struct and ALCcontext_struct
were never part of the spec. If issues arise from this change, it should be
reported.
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alMain.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index e3f24829..69ec9749 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -663,7 +663,7 @@ struct RealMixParams { using POSTPROCESS = void(*)(ALCdevice *device, ALsizei SamplesToDo); -struct ALCdevice_struct { +struct ALCdevice { RefCount ref{1u}; std::atomic<bool> Connected{true}; @@ -795,10 +795,10 @@ struct ALCdevice_struct { std::atomic<ALCdevice*> next{nullptr}; - ALCdevice_struct(DeviceType type); - ALCdevice_struct(const ALCdevice_struct&) = delete; - ALCdevice_struct& operator=(const ALCdevice_struct&) = delete; - ~ALCdevice_struct(); + ALCdevice(DeviceType type); + ALCdevice(const ALCdevice&) = delete; + ALCdevice& operator=(const ALCdevice&) = delete; + ~ALCdevice(); ALsizei bytesFromFmt() const noexcept { return BytesFromDevFmt(FmtType); } ALsizei channelsFromFmt() const noexcept { return ChannelsFromDevFmt(FmtChans, mAmbiOrder); } |