mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
update openal-soft to 1.24.3
keeping the alt 87514151c4 (diff-73a8dc1ce58605f6c5ea53548454c3bae516ec5132a29c9d7ff7edf9730c75be)
This commit is contained in:
parent
12db0500e8
commit
ba32094b7b
276 changed files with 49304 additions and 8712 deletions
|
|
@ -3,9 +3,11 @@
|
|||
|
||||
#include "events.h"
|
||||
|
||||
#include "alnumeric.h"
|
||||
#include "alspan.h"
|
||||
#include "core/logging.h"
|
||||
#include "device.h"
|
||||
#include "fmt/core.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
|
@ -19,7 +21,7 @@ ALCenum EnumFromEventType(const alc::EventType type)
|
|||
case alc::EventType::DeviceRemoved: return ALC_EVENT_TYPE_DEVICE_REMOVED_SOFT;
|
||||
case alc::EventType::Count: break;
|
||||
}
|
||||
throw std::runtime_error{"Invalid EventType: "+std::to_string(al::to_underlying(type))};
|
||||
throw std::runtime_error{fmt::format("Invalid EventType: {}", int{al::to_underlying(type)})};
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
@ -74,7 +76,7 @@ FORCE_ALIGN ALCboolean ALC_APIENTRY alcEventControlSOFT(ALCsizei count, const AL
|
|||
auto etype = alc::GetEventType(type);
|
||||
if(!etype)
|
||||
{
|
||||
WARN("Invalid event type: 0x%04x\n", type);
|
||||
WARN("Invalid event type: {:#04x}", as_unsigned(type));
|
||||
alcSetError(nullptr, ALC_INVALID_ENUM);
|
||||
return ALC_FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue