Closed GundlackFlorian closed 5 months ago
Ok if i set the number of bytes it works
private void WasapiCaptureOnDataAvailable( object? sender, WaveInEventArgs e )
{
Trace.WriteLine( $"{e.BytesRecorded}" );
var waveBuffer = new WaveBuffer( e.Buffer )
{
numberOfBytes = e.BytesRecorded
};
Trace.WriteLine($"{waveBuffer.FloatBufferCount}");
}
Little bit weird that it can't be set in the ctor and that it is not specified in the doc/samples.
Hello,
I noticed that when i'm using WaveBuffer the [Type]BufferCount is always zero, i guess this isn't normal.
My output:
I'm using NAudio 2.2.1 .net 7.0 C# 11.0