diff options
author | Lioncash <mathew1800@gmail.com> | 2018-12-28 14:04:44 -0500 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-12-28 14:13:58 -0500 |
commit | a73c7c73eb3c7edffd3c12e2becb55f86df1bc68 (patch) | |
tree | 7abca8e2fb0aad44020f575a917f43e5471e9dca /src/audio_core/audio_renderer.cpp | |
parent | e84e4fd3f8f3d42a37206ea743fac35f5161ea14 (diff) |
audio_core: Convert LOG_CRITICAL + UNREACHABLE over to UNIMPLEMENTED/UNIMPLEMENTED_MSG
These two macros being used in tandem were used prior to the
introduction of UNIMPLEMENTED and UNIMPLEMENTED_MSG. This provides
equivalent behavior, just with less typing/reading involved.
Diffstat (limited to 'src/audio_core/audio_renderer.cpp')
-rw-r--r-- | src/audio_core/audio_renderer.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/audio_core/audio_renderer.cpp b/src/audio_core/audio_renderer.cpp index 2683f3a5fa..00c0265110 100644 --- a/src/audio_core/audio_renderer.cpp +++ b/src/audio_core/audio_renderer.cpp @@ -260,8 +260,7 @@ void AudioRenderer::VoiceState::RefreshBuffer() { break; } default: - LOG_CRITICAL(Audio, "Unimplemented sample_format={}", info.sample_format); - UNREACHABLE(); + UNIMPLEMENTED_MSG("Unimplemented sample_format={}", info.sample_format); break; } @@ -280,8 +279,7 @@ void AudioRenderer::VoiceState::RefreshBuffer() { break; } default: - LOG_CRITICAL(Audio, "Unimplemented channel_count={}", info.channel_count); - UNREACHABLE(); + UNIMPLEMENTED_MSG("Unimplemented channel_count={}", info.channel_count); break; } |