public override long GetSamples(int samples, out byte[] data)
{
int bytes = _audioFormat.BytesPerSample * samples;
data = new byte[bytes];
var readBuf = new float[samples];
_reader.ReadSamples(readBuf, 0, samples);
CastBuffer(readBuf, data, samples);
return samples;
}
int ReadSamples(byte[] buffer, int offset, int count);
would really be great. Or an OggStream : Stream
like https://github.com/ZaneDubya/MP3Sharp does it.
float[]
PCM data failing to glue it into OpenRA and I bet I am not the only one.
The example on the git is a bit ambiguous.
I'd like to merge multiple ogg files into a single ogg file. Can anyone help me with that?