private static AudioFormat audioFormatFromHeaderValue(int audioFormat) {
        switch (audioFormat) {
        case 0:
            return AudioFormat.UNSPECIFIED;
        case 1:
            return AudioFormat.OGG_VORBIS;
        case 2:
            return AudioFormat.FLAC;
        case 3:
            return AudioFormat.PCM_S16LE;
        default:
            return null;
        }
    }