Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bbed3af4 authored by Gaurav Shah's avatar Gaurav Shah Committed by android-build-merger
Browse files

Merge "audio: Change the default init value for StreamDescriptor" am: 2e559195

am: 1d144929

* commit '1d144929':
  audio: Change the default init value for StreamDescriptor
parents b0f5b51f 1d144929
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -35,7 +35,10 @@ namespace android {
StreamDescriptor::StreamDescriptor()
    :   mIndexMin(0), mIndexMax(1), mCanBeMuted(true)
{
    mIndexCur.add(AUDIO_DEVICE_OUT_DEFAULT, 0);
    // Initialize the current stream's index to mIndexMax so volume isn't 0 in
    // cases where the Java layer doesn't call into the audio policy service to
    // set the default volume.
    mIndexCur.add(AUDIO_DEVICE_OUT_DEFAULT, mIndexMax);
}

int StreamDescriptor::getVolumeIndex(audio_devices_t device) const