Skip to content

Commit

Permalink
Set max volume of 21 as default volume for speaker+hp
Browse files Browse the repository at this point in the history
  • Loading branch information
biologist79 committed Dec 8, 2024
1 parent 9182dbd commit e7e8d22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/AudioPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ void AudioPlayer_Init(void) {
AudioPlayer_SetMaxVolume(nvsMaxVolumeSpeaker);
Log_Printf(LOGLEVEL_INFO, restoredMaxLoudnessForSpeakerFromNvs, nvsMaxVolumeSpeaker);
} else {
gPrefsSettings.putUInt("maxVolumeSp", nvsMaxVolumeSpeaker);
// Set max volume to max per default. Can be adjusted later via webinterface.
gPrefsSettings.putUInt("maxVolumeSp", 21);
Log_Println(wroteMaxLoudnessForSpeakerToNvs, LOGLEVEL_ERROR);
}

Expand All @@ -126,7 +127,8 @@ void AudioPlayer_Init(void) {
AudioPlayer_MaxVolumeHeadphone = nvsAudioPlayer_MaxVolumeHeadphone;
Log_Printf(LOGLEVEL_INFO, restoredMaxLoudnessForHeadphoneFromNvs, nvsAudioPlayer_MaxVolumeHeadphone);
} else {
gPrefsSettings.putUInt("maxVolumeHp", nvsAudioPlayer_MaxVolumeHeadphone);
// Set max volume to max per default. Can be adjusted later via webinterface.
gPrefsSettings.putUInt("maxVolumeHp", 21);
Log_Println(wroteMaxLoudnessForHeadphoneToNvs, LOGLEVEL_ERROR);
}
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/revision.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma once

#include "gitrevision.h"
constexpr const char softwareRevision[] = "Software-revision: 20241125-1-DEV";
constexpr const char softwareRevision[] = "Software-revision: 20241208-1-DEV";

0 comments on commit e7e8d22

Please sign in to comment.