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

New Post: Weird slowing down of audio, when i use Mp3StreamingDemo

$
0
0
Ok, I found the problem, but still can't solve it.
private static IMp3FrameDecompressor CreateFrameDecompressor(Mp3Frame frame)
        {
            WaveFormat waveFormat = new Mp3WaveFormat(frame.SampleRate, frame.ChannelMode == ChannelMode.Mono ? 1 : 2,
               frame.FrameLength, frame.BitRate);
            return new DmoMp3FrameDecompressor(waveFormat);
        }
frame has a wrong SampleRate property in some audios.
TEXT
this song has 44100 Hz sample rate, but frame.SampleRate is 32000 Hz.
How can i solve this problem?

Also Dmo decompressor started work when I set argument sampleRate of Mp3WaveFormat constructor in true sample rate value of song manually

Viewing all articles
Browse latest Browse all 5831

Latest Images

Trending Articles



Latest Images