Skip to content

Commit

Permalink
Log only a warning if kAudioDevicePropertyDataSource query fails
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Jan 1, 2025
1 parent f042579 commit 2858d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alc/backends/coreaudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ void CoreAudioPlayback::open(std::string_view name)
err = GetDevProperty(audioDevice, kAudioDevicePropertyDataSource, false,
kAudioObjectPropertyElementMaster, sizeof(type), &type);
if(err != noErr)
ERR("Failed to get audio device type: {}", err);
WARN("Failed to get audio device type: '{}' ({})", FourCCPrinter{err}.c_str(), err);
else
{
TRACE("Got device type '{}'", FourCCPrinter{type}.c_str());
Expand Down

0 comments on commit 2858d27

Please sign in to comment.