21 lines
508 B
Haxe
Raw Permalink Normal View History

2025-01-22 16:18:30 +01:00
package kha.audio2;
class Buffer {
public var channels: Int;
public var samplesPerSecond: Int;
public var data: kha.arrays.Float32Array;
public var size: Int;
public var readLocation: Int;
public var writeLocation: Int;
public function new(size: Int, channels: Int, samplesPerSecond: Int) {
this.size = size;
this.data = new kha.arrays.Float32Array(size);
this.channels = channels;
this.samplesPerSecond = samplesPerSecond;
readLocation = 0;
writeLocation = 0;
}
}