fix used variable

This commit is contained in:
Daniel Sommer 2022-05-02 15:58:10 +02:00
parent c1b7220399
commit 3810d5f6c3

View file

@ -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,
}); });
} }