Loading services/audioflinger/Threads.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -5093,7 +5093,6 @@ MixerThread::MixerThread(const sp<IAfThreadCallback>& afThreadCallback, AudioStr // mPipeSink below // mNormalSink below { setMasterBalance(afThreadCallback->getMasterBalance_l()); ALOGV("MixerThread() id=%d type=%d", id, type); ALOGV("mSampleRate=%u, mChannelMask=%#x, mChannelCount=%u, mFormat=%#x, mFrameSize=%zu, " "mFrameCount=%zu, mNormalFrameCount=%zu", Loading @@ -5105,6 +5104,8 @@ MixerThread::MixerThread(const sp<IAfThreadCallback>& afThreadCallback, AudioStr // The Duplicating thread uses the AudioMixer and delivers data to OutputTracks // (downstream MixerThreads) in DuplicatingThread::threadLoop_write(). // Do not create or use mFastMixer, mOutputSink, mPipeSink, or mNormalSink. // Balance is *not* set in the DuplicatingThread here (or from AudioFlinger), // as the downstream MixerThreads implement it. return; } // create an NBAIO sink for the HAL output stream, and negotiate Loading Loading @@ -5264,6 +5265,9 @@ MixerThread::MixerThread(const sp<IAfThreadCallback>& afThreadCallback, AudioStr mNormalSink = initFastMixer ? mPipeSink : mOutputSink; break; } // setMasterBalance needs to be called after the FastMixer // (if any) is set up, in order to deliver the balance settings to it. setMasterBalance(afThreadCallback->getMasterBalance_l()); } MixerThread::~MixerThread() Loading Loading
services/audioflinger/Threads.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -5093,7 +5093,6 @@ MixerThread::MixerThread(const sp<IAfThreadCallback>& afThreadCallback, AudioStr // mPipeSink below // mNormalSink below { setMasterBalance(afThreadCallback->getMasterBalance_l()); ALOGV("MixerThread() id=%d type=%d", id, type); ALOGV("mSampleRate=%u, mChannelMask=%#x, mChannelCount=%u, mFormat=%#x, mFrameSize=%zu, " "mFrameCount=%zu, mNormalFrameCount=%zu", Loading @@ -5105,6 +5104,8 @@ MixerThread::MixerThread(const sp<IAfThreadCallback>& afThreadCallback, AudioStr // The Duplicating thread uses the AudioMixer and delivers data to OutputTracks // (downstream MixerThreads) in DuplicatingThread::threadLoop_write(). // Do not create or use mFastMixer, mOutputSink, mPipeSink, or mNormalSink. // Balance is *not* set in the DuplicatingThread here (or from AudioFlinger), // as the downstream MixerThreads implement it. return; } // create an NBAIO sink for the HAL output stream, and negotiate Loading Loading @@ -5264,6 +5265,9 @@ MixerThread::MixerThread(const sp<IAfThreadCallback>& afThreadCallback, AudioStr mNormalSink = initFastMixer ? mPipeSink : mOutputSink; break; } // setMasterBalance needs to be called after the FastMixer // (if any) is set up, in order to deliver the balance settings to it. setMasterBalance(afThreadCallback->getMasterBalance_l()); } MixerThread::~MixerThread() Loading