fix used variable
This commit is contained in:
parent
c1b7220399
commit
3810d5f6c3
1 changed files with 3 additions and 3 deletions
|
@ -83,9 +83,9 @@ class StreamBuffer extends EventEmitter {
|
||||||
this.streams.output.destroy();
|
this.streams.output.destroy();
|
||||||
}
|
}
|
||||||
this.streams.output = new NodeSpeaker({
|
this.streams.output = new NodeSpeaker({
|
||||||
channels: audioSettings?.channels || 2,
|
channels: this.audiosettings?.channels || 2,
|
||||||
bitDepth: audioSettings?.bitDepth || 16,
|
bitDepth: this.audiosettings?.bitDepth || 16,
|
||||||
sampleRate: audioSettings?.sampleRate || 44100,
|
sampleRate: this.audiosettings?.sampleRate || 44100,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue