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

Commit 2e559195 authored by Gaurav Shah's avatar Gaurav Shah Committed by Gerrit Code Review
Browse files

Merge "audio: Change the default init value for StreamDescriptor"

parents 8e3db8fc 5664139e
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -35,7 +35,10 @@ namespace android {
StreamDescriptor::StreamDescriptor()
StreamDescriptor::StreamDescriptor()
    :   mIndexMin(0), mIndexMax(1), mCanBeMuted(true)
    :   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
int StreamDescriptor::getVolumeIndex(audio_devices_t device) const