Mark Heath

Results 158 comments of Mark Heath
trafficstars

I already answered your question on StackOverflow, but the basic takeaway is that you can [use NLayer](https://www.markheath.net/post/managed-mp3-decoding-nlayer-naudio)

Not sure exactly what you're using? Have you referenced another library with a LAME wrapper? NAudio doesn't include any LAME support by default

I recommend using `MediaFoundationReader` instead of `Mp3FileReader` if possible, as that will not have this issue with ID3 tags

If you want to play chunks as they arrive, I recommend not opening a new WaveOutEvent device every time. Instead, use a `BufferedWaveProvider` that is constantly playing and place the...

thanks, sounds like a bug. The WasapiOut code is loosely based on [this sample](https://learn.microsoft.com/en-us/windows/win32/coreaudio/rendering-a-stream?source=recommendations) which includes a sleep to ensure the final bit of audio gets played, but maybe the...

What version of NAudio are you using? I've struggled to reproduce this issue with the NAudio demo app - I can hear all four tones (except on DirectSoundOut which does...

Actually I have reproduced it now (needed to be using Event sync), and think I have a fix for it

the change I've just pushed should resolve the issue and I also improved a few other issues with WASAPI playback. Feel free to test with the latest code. Not sure...

`AudioFileReader` is just a convenience top-level wrapper around some of the lower-level readers including `MediaFoundationReader`, `WaveFileReader` etc. `Mp3FileReader` does try to calculate total time, but does so by reading the...

WAV files sometimes contain compressed audio. Take a look at the `WaveFormat` of the `WaveFileReader`, and possibly `WaveFormatConversionStream.CreatePcmStream` could be used to convert it to PCM (dependent on what codecs...