Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: copying file using float array - WaveFileWrite.WriteSamples()

$
0
0
when you read into a float array you are specifying the number of samples, not bytes. You should also check the return value of Read and use that instead of buffer.Length/4.
What is the original file format of the file you are reading? Is waveReader an AudioFileReader?

Viewing all articles
Browse latest Browse all 5831

Latest Images

Trending Articles



Latest Images