mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Redesigned RVC UI for easier use and intelligibility
This commit is contained in:
@ -1014,21 +1014,6 @@ async function setExpression(character, expression, force) {
|
||||
audio.volume = 1.0;
|
||||
audio.animate({volume: 1.0}, 2000);
|
||||
})
|
||||
|
||||
// Set the point in playback that fadeout begins. This is for a 2 second fade out.
|
||||
var fadeAudio = setInterval(function () {
|
||||
|
||||
// Only fade if past the fade out point or not at zero already
|
||||
if (audio.volume != 0.0) {
|
||||
audio.volume -= 0.1;
|
||||
}
|
||||
// When volume at zero stop all the intervalling
|
||||
if (audio.volume === 0.0) {
|
||||
clearInterval(fadeAudio);
|
||||
|
||||
}
|
||||
}, 200);
|
||||
|
||||
}
|
||||
});
|
||||
console.error("<MUSIC module> CODE INJECTION END")
|
||||
|
Reference in New Issue
Block a user