Update Kha/Backends/Krom/kha/audio2/Audio.hx
This commit is contained in:
		| @ -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; | ||||
| 		} | ||||
|  | ||||
		Reference in New Issue
	
	Block a user