MIN_VOLUME_MULTIPLIER = 0.33

This commit is contained in:
Tomáš Mládek 2021-01-11 20:56:44 +01:00
parent eac0c6d8c7
commit a78318dd07

View file

@ -23,7 +23,7 @@ export default defineComponent({
const audio = ref<HTMLAudioElement | null>(null); const audio = ref<HTMLAudioElement | null>(null);
const MIN_SCALE = 0.02; const MIN_SCALE = 0.02;
const MIN_VOLUME_MULTIPLIER = 0.25; const MIN_VOLUME_MULTIPLIER = 0.33;
const vol_x = (1 - MIN_VOLUME_MULTIPLIER) / (1 - MIN_SCALE); const vol_x = (1 - MIN_VOLUME_MULTIPLIER) / (1 - MIN_SCALE);
const vol_b = 1 - vol_x; const vol_b = 1 - vol_x;