Ok, I found the problem, but still can't solve it.
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
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







