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; }