Loading services/audiopolicy/managerdefault/AudioPolicyManager.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -1326,6 +1326,7 @@ status_t AudioPolicyManager::stopSource(const sp<AudioOutputDescriptor>& outputD // force restoring the device selection on other active outputs if it differs from the // one being selected for this output uint32_t delayMs = outputDesc->latency()*2; for (size_t i = 0; i < mOutputs.size(); i++) { sp<AudioOutputDescriptor> desc = mOutputs.valueAt(i); if (desc != outputDesc && Loading @@ -1337,7 +1338,11 @@ status_t AudioPolicyManager::stopSource(const sp<AudioOutputDescriptor>& outputD setOutputDevice(desc, newDevice2, force, outputDesc->latency()*2); delayMs); // re-apply device specific volume if not done by setOutputDevice() if (!force) { applyStreamVolumes(desc, newDevice2, delayMs); } } } // update the outputs if stopping one with a stream that can affect notification routing Loading Loading
services/audiopolicy/managerdefault/AudioPolicyManager.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -1326,6 +1326,7 @@ status_t AudioPolicyManager::stopSource(const sp<AudioOutputDescriptor>& outputD // force restoring the device selection on other active outputs if it differs from the // one being selected for this output uint32_t delayMs = outputDesc->latency()*2; for (size_t i = 0; i < mOutputs.size(); i++) { sp<AudioOutputDescriptor> desc = mOutputs.valueAt(i); if (desc != outputDesc && Loading @@ -1337,7 +1338,11 @@ status_t AudioPolicyManager::stopSource(const sp<AudioOutputDescriptor>& outputD setOutputDevice(desc, newDevice2, force, outputDesc->latency()*2); delayMs); // re-apply device specific volume if not done by setOutputDevice() if (!force) { applyStreamVolumes(desc, newDevice2, delayMs); } } } // update the outputs if stopping one with a stream that can affect notification routing Loading