NAudio
AudioFileReader simplifies opening an audio file in NAudio
Simply pass in the filename, and it will attempt to open the
file and set up a conversion path that turns into PCM IEEE float.
ACM codecs will be used for conversion.
It provides a volume property and implements both WaveStream and
ISampleProvider, making it possibly the only stage in your audio
pipeline necessary for simple playback scenarios
Initializes a new instance of AudioFileReader
The file to open
Creates the reader stream, supporting all filetypes in the core NAudio library,
and ensuring we are in PCM format
File Name
File Name
WaveFormat of this stream
Length of this stream (in bytes)
Position of this stream (in bytes)
Reads from this wave stream
Audio buffer
Offset into buffer
Number of bytes required
Number of bytes read
Reads audio from this sample provider
Sample buffer
Offset into sample buffer
Number of samples required
Number of samples read
Gets or Sets the Volume of this AudioFileReader. 1.0f is full volume
Helper to convert source to dest bytes
Helper to convert dest to source bytes
Disposes this AudioFileReader
True if called from Dispose
Class for reading from MP3 files
Supports opening a MP3 file
Opens MP3 from a stream rather than a file
Will not dispose of this stream itself
The incoming stream containing MP3 data
Creates an ACM MP3 Frame decompressor. This is the default with NAudio
A WaveFormat object based