forked from LeenkxTeam/LNXSDK
Update Kha/Backends/Krom/kha/audio2/Audio.hx
This commit is contained in:
parent
92a2b0305e
commit
acede01167
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user