aboutsummaryrefslogtreecommitdiffstats
path: root/al/state.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-09-20 04:11:52 -0700
committerChris Robinson <[email protected]>2020-09-20 04:11:52 -0700
commit191150d9a8e5dea9350030c8d4cade37fcad1695 (patch)
tree3d5cb8b6c70c9bdd688d805f7b0d8e5f41d09c27 /al/state.cpp
parent8ef242bce084fae0689f2148442d10b5d029a512 (diff)
Remove deprecated, performance, and error event types
These would be better served with a proper debug API, rather than a general audio event API.
Diffstat (limited to 'al/state.cpp')
-rw-r--r--al/state.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/al/state.cpp b/al/state.cpp
index 8dda6f5f..dcc87972 100644
--- a/al/state.cpp
+++ b/al/state.cpp
@@ -736,20 +736,6 @@ START_API_FUNC
ContextRef context{GetContextRef()};
if UNLIKELY(!context) return;
- if((context->mEnabledEvts.load(std::memory_order_relaxed)&EventType_Deprecated))
- {
- std::lock_guard<std::mutex> _{context->mEventCbLock};
- ALbitfieldSOFT enabledevts{context->mEnabledEvts.load(std::memory_order_relaxed)};
- if((enabledevts&EventType_Deprecated) && context->mEventCb)
- {
- static const char msg[] =
- "alDopplerVelocity is deprecated in AL1.1, use alSpeedOfSound";
- const ALsizei msglen{sizeof(msg)-1};
- (*context->mEventCb)(AL_EVENT_TYPE_DEPRECATED_SOFT, 0, 0, msglen, msg,
- context->mEventParam);
- }
- }
-
if(!(value >= 0.0f && std::isfinite(value)))
context->setError(AL_INVALID_VALUE, "Doppler velocity %f out of range", value);
else