Update Kha/Backends/Krom/kha/audio2/Audio.hx

This commit is contained in:
LeenkxTeam 2025-05-13 19:52:40 +00:00
parent 92a2b0305e
commit acede01167

View File

@ -10,8 +10,7 @@ class Audio {
public static function _init() { public static function _init() {
var bufferSize = 1024 * 2; var bufferSize = 1024 * 2;
buffer = new Buffer(bufferSize * 4, 2, 44100); buffer = new Buffer(bufferSize * 4, 2, samplesPerSecond);
Audio.samplesPerSecond = 44100;
} }
public static function _callCallback(samples: Int): Void { public static function _callCallback(samples: Int): Void {