Loading services/audioflinger/Threads.cpp +7 −5 Original line number Diff line number Diff line Loading @@ -3339,17 +3339,19 @@ ssize_t AudioFlinger::PlaybackThread::threadLoop_write() if (framesWritten > 0) { bytesWritten = framesWritten * mFrameSize; // Send to MelProcessor for sound dose measurement. auto processor = mMelProcessor.load(); if (processor) { processor->process((char *)mSinkBuffer + offset, bytesWritten); } #ifdef TEE_SINK mTee.write((char *)mSinkBuffer + offset, framesWritten); #endif } else { bytesWritten = framesWritten; } auto processor = mMelProcessor.load(); if (processor) { processor->process((char *)mSinkBuffer + offset, bytesWritten); } // otherwise use the HAL / AudioStreamOut directly } else { // Direct output and offload threads Loading Loading
services/audioflinger/Threads.cpp +7 −5 Original line number Diff line number Diff line Loading @@ -3339,17 +3339,19 @@ ssize_t AudioFlinger::PlaybackThread::threadLoop_write() if (framesWritten > 0) { bytesWritten = framesWritten * mFrameSize; // Send to MelProcessor for sound dose measurement. auto processor = mMelProcessor.load(); if (processor) { processor->process((char *)mSinkBuffer + offset, bytesWritten); } #ifdef TEE_SINK mTee.write((char *)mSinkBuffer + offset, framesWritten); #endif } else { bytesWritten = framesWritten; } auto processor = mMelProcessor.load(); if (processor) { processor->process((char *)mSinkBuffer + offset, bytesWritten); } // otherwise use the HAL / AudioStreamOut directly } else { // Direct output and offload threads Loading