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

Commit 2854ed50 authored by Andy Hung's avatar Andy Hung
Browse files

Fix AudioFormat getBytesPerSample to recognize float

Bug: 15719638
Change-Id: Id53a07ef24e4403f3bad7a13c4dd801e556769eb
parent 40ff293a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -152,6 +152,8 @@ public class AudioFormat {
        switch (audioFormat) {
        case ENCODING_PCM_8BIT:
            return 1;
        case ENCODING_PCM_FLOAT:
            return 4;
        case ENCODING_PCM_16BIT:
        case ENCODING_DEFAULT:
            return 2;