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)
|
if (buffer == null)
|
||||||
return 0;
|
return 0;
|
||||||
var value = buffer.data.get(buffer.readLocation);
|
var value = buffer.data.get(buffer.readLocation);
|
||||||
buffer.readLocation += 1;
|
++buffer.readLocation;
|
||||||
if (buffer.readLocation >= buffer.size) {
|
if (buffer.readLocation >= buffer.size) {
|
||||||
buffer.readLocation = 0;
|
buffer.readLocation = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user