Skip to content

Commit

Permalink
Merge pull request #720 from o-p-a/fix_setvolume_error_msg
Browse files Browse the repository at this point in the history
Fix insignificant message typo in VolumeControl.cpp
  • Loading branch information
pjft authored Feb 28, 2021
2 parents 6205e99 + 3890e19 commit ea9367c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions es-app/src/VolumeControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void VolumeControl::init()
mixerLineControls.cbmxctrl = sizeof(MIXERCONTROL);
if (mixerGetLineControls((HMIXEROBJ)mixerHandle, &mixerLineControls, MIXER_GETLINECONTROLSF_ONEBYTYPE) != MMSYSERR_NOERROR)
{
LOG(LogError) << "VolumeControl::getVolume() - Failed to get mixer volume control!";
LOG(LogError) << "VolumeControl::init() - Failed to get mixer volume control!";
mixerClose(mixerHandle);
mixerHandle = nullptr;
}
Expand Down Expand Up @@ -364,12 +364,12 @@ void VolumeControl::setVolume(int volume)
if (snd_mixer_selem_set_playback_volume(mixerElem, SND_MIXER_SCHN_FRONT_LEFT, rawVolume) < 0
|| snd_mixer_selem_set_playback_volume(mixerElem, SND_MIXER_SCHN_FRONT_RIGHT, rawVolume) < 0)
{
LOG(LogError) << "VolumeControl::getVolume() - Failed to set mixer volume!";
LOG(LogError) << "VolumeControl::setVolume() - Failed to set mixer volume!";
}
}
else
{
LOG(LogError) << "VolumeControl::getVolume() - Failed to get volume range!";
LOG(LogError) << "VolumeControl::setVolume() - Failed to get volume range!";
}
}
#elif defined(WIN32) || defined(_WIN32)
Expand Down

0 comments on commit ea9367c

Please sign in to comment.