mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-23 21:55:05 -04:00
Moved AK Speaker Disable back to a title bar, and modified Mute Icon to differentiate (#1192)
* Added fn to indicate support for disabling speaker * Support both mute & speaker disable icons * Byte grouping for ui_config2_t bitmap * Fix disabling AK speaker to take effect immediately
This commit is contained in:
parent
b5ea81cf96
commit
3f8a4957af
13 changed files with 153 additions and 16 deletions
|
@ -184,6 +184,9 @@ void speaker_unmute() {
|
|||
|
||||
void update_audio_mute() {
|
||||
cfg_speaker_disable = portapack::persistent_memory::config_speaker_disable();
|
||||
if (cfg_speaker_disable) {
|
||||
audio_codec->speaker_disable();
|
||||
}
|
||||
|
||||
if (portapack::persistent_memory::config_audio_mute())
|
||||
speaker_mute();
|
||||
|
@ -269,4 +272,8 @@ void set_rate(const Rate rate) {
|
|||
clock_manager.set_base_audio_clock_divider(toUType(rate));
|
||||
}
|
||||
|
||||
bool speaker_disable_supported() {
|
||||
return audio_codec->speaker_disable_supported();
|
||||
}
|
||||
|
||||
} /* namespace audio */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue