[+] Remember vocals volume
This commit is contained in:
@@ -106,4 +106,6 @@ export interface UserData {
|
|||||||
isFinished: boolean;
|
isFinished: boolean;
|
||||||
lastResultId: string | null;
|
lastResultId: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
vocalsVolume?: number;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,8 @@
|
|||||||
let loc = $state(data.user.data.loc)
|
let loc = $state(data.user.data.loc)
|
||||||
$effect(() => { API.saveUserData({ loc }) })
|
$effect(() => { API.saveUserData({ loc }) })
|
||||||
|
|
||||||
let vocalsVolume = $state(100) // 0-100
|
let vocalsVolume = $state(data.user.data.vocalsVolume ?? 100) // 0-100
|
||||||
|
$effect(() => { API.saveUserData({ vocalsVolume }) })
|
||||||
let speed = $state(1)
|
let speed = $state(1)
|
||||||
|
|
||||||
// Process lyrics
|
// Process lyrics
|
||||||
|
|||||||
Reference in New Issue
Block a user