Loading services/audioflinger/AudioFlinger.cpp +1 −8 Original line number Diff line number Diff line Loading @@ -2166,14 +2166,6 @@ if (mType == DIRECT) { // only process effects if we're going to write if (sleepTime == 0) { if (mixerStatus == MIXER_TRACKS_READY) { // Non-trivial for DIRECT only applyVolume(); } for (size_t i = 0; i < effectChains.size(); i ++) { effectChains[i]->process_l(); } Loading Loading @@ -2999,6 +2991,7 @@ void AudioFlinger::DirectOutputThread::threadLoop_mix() } sleepTime = 0; standbyTime = systemTime() + standbyDelay; applyVolume(); } void AudioFlinger::DirectOutputThread::threadLoop_sleepTime() Loading services/audioflinger/AudioFlinger.h +3 −1 Original line number Diff line number Diff line Loading @@ -1028,7 +1028,6 @@ public: virtual mixer_state prepareTracks_l(Vector< sp<Track> > *tracksToRemove); virtual void threadLoop_mix(); virtual void threadLoop_sleepTime(); virtual void applyVolume(); // volumes last sent to audio HAL with stream->set_volume() // FIXME use standard representation and names Loading @@ -1042,6 +1041,9 @@ public: bool rampVolume; uint16_t leftVol; uint16_t rightVol; private: void applyVolume(); // FIXME inline into threadLoop_mix() }; class DuplicatingThread : public MixerThread { Loading Loading
services/audioflinger/AudioFlinger.cpp +1 −8 Original line number Diff line number Diff line Loading @@ -2166,14 +2166,6 @@ if (mType == DIRECT) { // only process effects if we're going to write if (sleepTime == 0) { if (mixerStatus == MIXER_TRACKS_READY) { // Non-trivial for DIRECT only applyVolume(); } for (size_t i = 0; i < effectChains.size(); i ++) { effectChains[i]->process_l(); } Loading Loading @@ -2999,6 +2991,7 @@ void AudioFlinger::DirectOutputThread::threadLoop_mix() } sleepTime = 0; standbyTime = systemTime() + standbyDelay; applyVolume(); } void AudioFlinger::DirectOutputThread::threadLoop_sleepTime() Loading
services/audioflinger/AudioFlinger.h +3 −1 Original line number Diff line number Diff line Loading @@ -1028,7 +1028,6 @@ public: virtual mixer_state prepareTracks_l(Vector< sp<Track> > *tracksToRemove); virtual void threadLoop_mix(); virtual void threadLoop_sleepTime(); virtual void applyVolume(); // volumes last sent to audio HAL with stream->set_volume() // FIXME use standard representation and names Loading @@ -1042,6 +1041,9 @@ public: bool rampVolume; uint16_t leftVol; uint16_t rightVol; private: void applyVolume(); // FIXME inline into threadLoop_mix() }; class DuplicatingThread : public MixerThread { Loading