This project has moved and is read-only. For the latest updates, please go here.

AudioPlayback Demo's play's respond

Apr 1, 2014 at 10:06 PM
Edited Apr 1, 2014 at 10:09 PM

I have downloaded the NAudio Demo, and I noticed a slight delay in the AudioPlayback Demo playback's respond on MP3 files, meaning, when I click on PLAY, 3 min MP3 files take close to a second to start playing, whereas 3 min WAV files start playing a lot faster, perhaps a buffer?, or is the Mp3FileReader decompressing the mp3 files before playing them?.

Just an additional note, I tested all Plugins in the AudioPlayback demo and they all seem to respond the same way. MP3 files seem to take just a bit longer to actually play the audio than wav files.

I'm currently using the DirectSound plugin with a latency of 50ms.

Does anyone know why is this? or how to adjust it?

Thank you.
Apr 4, 2014 at 3:23 PM
Mp3FileReader creates a table of contents of frames before starting which may be delaying it. Use MediaFoundationReader if you can for a faster startup. In the future I may offer an option to defer the table of contents creation on startup
Marked as answer by aj152 on 4/23/2014 at 2:16 PM
Apr 23, 2014 at 10:15 PM
Thanks for the help.