Loading services/audioflinger/Threads.cpp +16 −14 Original line number Diff line number Diff line Loading @@ -8296,9 +8296,8 @@ void AudioFlinger::MmapPlaybackThread::processVolume_l() mEffectChains[0]->setVolume_l(&vol, &vol); volume = (float)vol / (1 << 24); } mOutput->stream->setVolume(volume, volume); // Try to use HW volume control and fall back to SW control if not implemented if (mOutput->stream->setVolume(volume, volume) != NO_ERROR) { sp<MmapStreamCallback> callback = mCallback.promote(); if (callback != 0) { int channelCount; Loading @@ -8312,6 +8311,9 @@ void AudioFlinger::MmapPlaybackThread::processVolume_l() values.add(volume); } callback->onVolumeChanged(mChannelMask, values); } else { ALOGW("Could not set MMAP stream volume: no volume callback!"); } } } } Loading Loading
services/audioflinger/Threads.cpp +16 −14 Original line number Diff line number Diff line Loading @@ -8296,9 +8296,8 @@ void AudioFlinger::MmapPlaybackThread::processVolume_l() mEffectChains[0]->setVolume_l(&vol, &vol); volume = (float)vol / (1 << 24); } mOutput->stream->setVolume(volume, volume); // Try to use HW volume control and fall back to SW control if not implemented if (mOutput->stream->setVolume(volume, volume) != NO_ERROR) { sp<MmapStreamCallback> callback = mCallback.promote(); if (callback != 0) { int channelCount; Loading @@ -8312,6 +8311,9 @@ void AudioFlinger::MmapPlaybackThread::processVolume_l() values.add(volume); } callback->onVolumeChanged(mChannelMask, values); } else { ALOGW("Could not set MMAP stream volume: no volume callback!"); } } } } Loading