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

New Post: Determine which mp3 files are silent with NAudio?

$
0
0
AudioFileReader implements ISampleProvider, so you should call the overload of Read that takes a float array and you'll have sample values already. And yes, true silence should be 0.0F for very value (although the encode to MP3 and decode from MP3 might possibly introduce a non-zero value somewhere). The values will be centered around 0.0 - there can be low negative values too

Viewing all articles
Browse latest Browse all 5831

Trending Articles