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

Commit 1d144929 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

* commit '2e559195':
  audio: Change the default init value for StreamDescriptor
parents 28c7c2e5 2e559195
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