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

Commit ecc16eae authored by Steve Kondik's avatar Steve Kondik Committed by Steve Kondik
Browse files

stagefright: Increase raw codec buffer size

 * Enlarge the buffer to handle up to 6 channels of 32-bit data.
 * We should probably do this dynamically in the future.

Change-Id: Id1af10b52c4e71e811d0d034baf2d3f1388f4abd
parent cb950e2c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ void SoftRaw::initPorts() {
    def.eDir = OMX_DirInput;
    def.nBufferCountMin = kNumBuffers;
    def.nBufferCountActual = def.nBufferCountMin;
    def.nBufferSize = 64 * 1024;
    def.nBufferSize = 4096 * 6 * 4;
    def.bEnabled = OMX_TRUE;
    def.bPopulated = OMX_FALSE;
    def.eDomain = OMX_PortDomainAudio;
@@ -77,7 +77,7 @@ void SoftRaw::initPorts() {
    def.eDir = OMX_DirOutput;
    def.nBufferCountMin = kNumBuffers;
    def.nBufferCountActual = def.nBufferCountMin;
    def.nBufferSize = 64 * 1024;
    def.nBufferSize = 4096 * 6 * 4;
    def.bEnabled = OMX_TRUE;
    def.bPopulated = OMX_FALSE;
    def.eDomain = OMX_PortDomainAudio;