private static int calculateSampleRate(int mpegVer, int code) {
        return SAMPLE_RATE[mpegVer][code];
    }
Calculates the sample rate based on the given parameters.

@param mpegVer the MPEG version
@param code    the code for the sample rate
@return the sample rate in samples per second
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-audiovideo-module/src/main/java/org/apache/tika/parser/mp3/MpegStream.java