From 3a7aca97280e397ef70e670fb6e886d3778bca65 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Tue, 7 Sep 2021 16:13:59 -0400 Subject: [PATCH] Cortex: Use B_AUDIO_SIZE_MASK instead of a constant. No functional change. --- src/apps/cortex/support/SoundUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/cortex/support/SoundUtils.cpp b/src/apps/cortex/support/SoundUtils.cpp index e595f27a9d..e7cf7aaace 100644 --- a/src/apps/cortex/support/SoundUtils.cpp +++ b/src/apps/cortex/support/SoundUtils.cpp @@ -64,7 +64,7 @@ bytes_per_frame( // bytes-per-sample value in the low nybble. Having a fixed // number of bytes-per-sample, and no inter-sample relationships, // is what makes a format "raw". - int bytesPerSample = format.format & 0xf; + int bytesPerSample = format.format & media_raw_audio_format::B_AUDIO_SIZE_MASK; return bytesPerSample * format.channel_count; }