1 /* 2 * aud_scan.h 3 * 4 * Scans the audio track 5 * 6 * Copyright (C) Tilmann Bitterberg - June 2003 7 * 8 * This file is part of transcode, a video stream processing tool 9 * 10 * transcode is free software; you can redistribute it and/or modify 11 * it under the terms of the GNU General Public License as published by 12 * the Free Software Foundation; either version 2, or (at your option) 13 * any later version. 14 * 15 * transcode is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details. 19 * 20 * You should have received a copy of the GNU General Public License 21 * along with GNU Make; see the file COPYING. If not, write to 22 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 23 * 24 */ 25 26 int tc_get_mp3_header(unsigned char* hbuf, int* chans, int* srate, int *bitrate); 27 #define tc_decode_mp3_header(hbuf) tc_get_mp3_header(hbuf, NULL, NULL, NULL) 28 int tc_get_ac3_header(unsigned char* _buf, int len, int* chans, int* srate, int *bitrate); 29 30 // main entrance 31 int tc_get_audio_header(unsigned char* buf, int buflen, int format, int* chans, int* srate, int *bitrate); 32 int tc_probe_audio_header(unsigned char* buf, int buflen); 33 34 int tc_format_ms_supported(int format); 35 void tc_format_mute(unsigned char *buf, int buflen, int format); 36 37