Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got a frame at sample rate 32000, in an MP3 with sample rate 12000. Mp3FileReader does not support sample rate changes.' #1172

Open
satpowers opened this issue Jul 20, 2024 · 0 comments

Comments

@satpowers
Copy link

satpowers commented Jul 20, 2024

I am trying to load file to memorystream then play it, but I get error:
Got a frame at sample rate 32000, in an MP3 with sample rate 12000. Mp3FileReader does not support sample rate changes.'
on the line: var mp = new Mp3FileReader(ms);

this is my code
byte[] bytes = File.ReadAllBytes(testFile);
var ms = new MemoryStream(bytes, 0, bytes.Length, false, true);
var mp = new Mp3FileReader(ms);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant