deps/lame/ACM/ACMStream.cpp
static int
map2MP3Frequency(int freq)
{
    if (freq <= 8000)
        return 8000;
    if (freq <= 11025)
        return 11025;
    if (freq <= 12000)
        return 12000;
    if (freq <= 16000)
        return 16000;
    if (freq <= 22050)
        return 22050;
    if (freq <= 24000)
        return 24000;
    if (freq <= 32000)
        return 32000;
    if (freq <= 44100)
        return 44100;

    return 48000;
}
/* map frequency to a valid MP3 sample frequency
 *
 * Robert Hegemann 2000-07-01
 */
map frequency to a valid MP3 sample frequency
Robert Hegemann 2000-07-01
map frequency to a valid MP3 sample frequency Robert Hegemann 2000 - 07 - 01
static int
map2MP3Frequency(int freq)
{
    if (freq <= 8000)
        return 8000;
    if (freq <= 11025)
        return 11025;
    if (freq <= 12000)
        return 12000;
    if (freq <= 16000)
        return 16000;
    if (freq <= 22050)
        return 22050;
    if (freq <= 24000)
        return 24000;
    if (freq <= 32000)
        return 32000;
    if (freq <= 44100)
        return 44100;
    return 48000;
}
static int map2MP3Frequency ( int freq ) { if ( freq <= 8000 ) return 8000 ; if ( freq <= 11025 ) return 11025 ; if ( freq <= 12000 ) return 12000 ; if ( freq <= 16000 ) return 16000 ; if ( freq <= 22050 ) return 22050 ; if ( freq <= 24000 ) return 24000 ; if ( freq <= 32000 ) return 32000 ; if ( freq <= 44100 ) return 44100 ; return 48000 ; }
map frequency to a valid MP3 sample frequency
 Robert Hegemann 2000-07-01
map frequency to a valid MP3 sample frequency Robert Hegemann 2000 - 07 - 01