Don't apply distance attenuation when the slot's AuxSendAuto is off
[openal-soft.git] / al / eax / utils.cpp
blob871ab764bd9f715a6393cabb5f7ca56492d45cbd
1 #include "config.h"
3 #include "utils.h"
5 #include <cassert>
6 #include <exception>
8 #include "alstring.h"
9 #include "core/logging.h"
12 void eax_log_exception(std::string_view message) noexcept
14 const auto exception_ptr = std::current_exception();
15 assert(exception_ptr);
17 try {
18 std::rethrow_exception(exception_ptr);
20 catch(const std::exception& ex) {
21 ERR("%.*s %s\n", al::sizei(message), message.data(), ex.what());
23 catch(...) {
24 ERR("%.*s %s\n", al::sizei(message), message.data(), "Generic exception.");