- if (PsndRate == 22050) { mix_samples = mix_16h_to_32_s1; length_mp3 <<= 1; shr = 1; }
- else if (PsndRate == 11025) { mix_samples = mix_16h_to_32_s2; length_mp3 <<= 2; shr = 2; }
+ if (PsndRate <= 11025 + 100) {
+ mix_samples = mix_16h_to_32_s2;
+ length_mp3 <<= 2; shr = 2;
+ }
+ else if (PsndRate <= 22050 + 100) {
+ mix_samples = mix_16h_to_32_s1;
+ length_mp3 <<= 1; shr = 1;
+ }