forked from LeenkxTeam/LNXSDK
Update Kha/Backends/Krom/kha/audio2/Audio.hx
This commit is contained in:
parent
acede01167
commit
aa0b2b1b7e
@ -31,11 +31,11 @@ class Audio {
|
||||
}
|
||||
}
|
||||
|
||||
public static function _readSample(): Float {
|
||||
public static function _readSample(): FastFloat {
|
||||
if (buffer == null)
|
||||
return 0;
|
||||
var value = buffer.data.get(buffer.readLocation);
|
||||
buffer.readLocation += 1;
|
||||
++buffer.readLocation;
|
||||
if (buffer.readLocation >= buffer.size) {
|
||||
buffer.readLocation = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user