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

Commit 570dd184 authored by Glenn Kasten's avatar Glenn Kasten Committed by Android (Google) Code Review
Browse files

Merge "Re-implement Format_frameSize(), to support non-power-of-2"

parents cf755e36 983f0578
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -24,8 +24,7 @@ namespace android {

size_t Format_frameSize(const NBAIO_Format& format)
{
    // FIXME The sample format is hard-coded to AUDIO_FORMAT_PCM_16_BIT
    return Format_channelCount(format) * sizeof(short);
    return format.mFrameSize;
}

int Format_frameBitShift(const NBAIO_Format& format)