chore: fix wrong comment
This commit is contained in:
@@ -34,7 +34,7 @@ function pauseAudio() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function fadeIn() {
|
function fadeIn() {
|
||||||
// volume ranges from 0 to 1, this determines by how much the volume number
|
// volume ranges from 0 to 100, this determines by how much the volume number
|
||||||
// should be incremented at every step of the fade in
|
// should be incremented at every step of the fade in
|
||||||
const volumeStep = 100 / (CROSSFADE_DURATION_MS / CROSSFADE_INTERVAL_MS);
|
const volumeStep = 100 / (CROSSFADE_DURATION_MS / CROSSFADE_INTERVAL_MS);
|
||||||
const handle = setInterval(() => {
|
const handle = setInterval(() => {
|
||||||
@@ -48,7 +48,7 @@ function fadeIn() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function fadeOut() {
|
function fadeOut() {
|
||||||
// volume ranges from 0 to 1, this determines by how much the volume number
|
// volume ranges from 0 to 100, this determines by how much the volume number
|
||||||
// should be decremented at every step of the fade out
|
// should be decremented at every step of the fade out
|
||||||
const volumeStep = 100 / (CROSSFADE_DURATION_MS / CROSSFADE_INTERVAL_MS);
|
const volumeStep = 100 / (CROSSFADE_DURATION_MS / CROSSFADE_INTERVAL_MS);
|
||||||
const handle = setInterval(() => {
|
const handle = setInterval(() => {
|
||||||
|
Reference in New Issue
Block a user