Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 173f4995 authored by Andy Hung's avatar Andy Hung Committed by Rom Lemarchand
Browse files

Update audio_bytes_per_sample for PCM 24 bit packed



Change-Id: Ic79f604893f5c4f2e8e35189d6638b5b160435ed
Signed-off-by: default avatarAndy Hung <hunga@google.com>
parent 318900ad
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -633,6 +633,9 @@ static inline size_t audio_bytes_per_sample(audio_format_t format)
    case AUDIO_FORMAT_PCM_8_24_BIT:
        size = sizeof(int32_t);
        break;
    case AUDIO_FORMAT_PCM_24_BIT_PACKED:
        size = sizeof(uint8_t) * 3;
        break;
    case AUDIO_FORMAT_PCM_16_BIT:
        size = sizeof(int16_t);
        break;