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) | 		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; | ||||||
| 		} | 		} | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user