[mirotalk] - add switch sound

This commit is contained in:
Miroslav Pejic
2023-04-03 12:48:08 +02:00
parent ba13bd3d4b
commit 5ea053e5ae
2 changed files with 6 additions and 2 deletions
+6 -2
View File
@@ -3524,6 +3524,8 @@ function setMySettingsBtn() {
// Sounds
switchSounds.addEventListener('change', (e) => {
notifyBySound = e.currentTarget.checked;
userLog('toast', 'Notify & sounds ' + (notifyBySound ? 'ON' : 'OFF'));
playSound('switch');
});
if (isMobileDevice) {
@@ -3532,13 +3534,15 @@ function setMySettingsBtn() {
// Push to talk
switchPushToTalk.addEventListener('change', (e) => {
isPushToTalkActive = e.currentTarget.checked;
userLog('toast', 'Push to talk active - ' + isPushToTalkActive);
userLog('toast', 'Push to talk ' + (isPushToTalkActive ? 'ON' : 'OFF'));
playSound('switch');
});
}
switchAudioPitchBar.addEventListener('change', (e) => {
isAudioPitchBar = e.currentTarget.checked;
userLog('toast', 'Audio pitch bar active - ' + isAudioPitchBar);
userLog('toast', 'Audio pitch bar ' + (isAudioPitchBar ? 'ON' : 'OFF'));
playSound('switch');
});
// make chat room draggable for desktop
Binary file not shown.