mirror of
https://codeberg.org/uzu/strudel
synced 2026-10-07 01:19:01 -04:00
set default gain to .8 if version tag is set <= 1.2
This commit is contained in:
@@ -168,9 +168,13 @@ export function resetDefaultValues() {
|
||||
}
|
||||
export function setVersionDefaults(version) {
|
||||
resetDefaultValues();
|
||||
if (version === '1.0') {
|
||||
const v = Number(version);
|
||||
if (v <= 1.0) {
|
||||
setDefaultValue('fanchor', 0.5);
|
||||
}
|
||||
if (v <= 1.2) {
|
||||
setDefaultValue('gain', 0.8);
|
||||
}
|
||||
}
|
||||
|
||||
export const resetLoadedSounds = () => soundMap.set({});
|
||||
|
||||
Reference in New Issue
Block a user