Balanced volume of time announcements

This commit is contained in:
Histmy 2021-02-06 21:42:42 +01:00
parent b48aa8d125
commit 538aff8ba9

View File

@ -25,11 +25,11 @@ function vypocitatCas(vojsl) {
function rekniCas(vojsl, cas) { function rekniCas(vojsl, cas) {
if (!vojsl) return; if (!vojsl) return;
const d1 = vojsl.play(`./zvuky/intro.mp3`); const d1 = vojsl.play(`./zvuky/intro.mp3`, { volume: 0.8 });
d1.on('finish', function () { d1.on('finish', function () {
const d2 = vojsl.play(`./zvuky/${cas}.mp3`); const d2 = vojsl.play(`./zvuky/${cas}.mp3`, { volume: 1.5 });
d2.on('finish', function () { d2.on('finish', function () {
vojsl.play(`./zvuky/grg.mp3`); vojsl.play(`./zvuky/grg.mp3`, { volume: 0.5 });
}); });
}); });