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

Commented Issue: Streaming MP3, wrong bitrate. creates incorrect sound [16328]

$
0
0
So, i was streaming some Mp3's and noticed that some song were being play'd to fast and some to slow.
After checking what bitrate the Mp3Frame were returning, i found that some songs got 128kbps when they in face were 222kbps, and other got 160kbps when they in face were 128kbps.

After digging around in the code, i found that there are some problems reading the MPEG header, as it requires the header to be at the first bytes of the song.
That's not always the case. So i got to work and have made a solution, that streams around 1k at the time and scans is for the header.
It works wonderful and i'll try to replace the original method in the following days, if that's alright! =)

Sorry for any possible spelling or grammar issues =)
Comments: Unfortunately there is not enough information here for me to investigate this bug. Please attach an MP3 file that demonstrates the problem

Viewing all articles
Browse latest Browse all 5831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>