00001 /*************************************************************************** 00002 * Copyright (C) 2006 by André Lindhjem <belgarat@sdf.lonestar.org>, * 00003 * Kjetil Holien <kjetil.holien@gmail.com>, * 00004 * Terje Risa <terje.risa@gmail.com> & * 00005 * Øyvind Nerbråten <oyvind@nerbraten.com> * 00006 * * 00007 * This program is free software; you can redistribute it and/or modify * 00008 * it under the terms of the GNU General Public License as published by * 00009 * the Free Software Foundation; either version 2 of the License, or * 00010 * (at your option) any later version. * 00011 * * 00012 * This program is distributed in the hope that it will be useful, * 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00015 * GNU General Public License for more details. * 00016 * * 00017 * You should have received a copy of the GNU General Public License * 00018 * along with this program; if not, write to the * 00019 * Free Software Foundation, Inc., * 00020 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00021 *************************************************************************** 00022 * 00023 * \file aac.h 00024 * \author André Lindhjem, Kjetil Holien, Terje Risa & Øyvind Nerbråten 00025 * \date 15.02.2006 00026 * 00027 * Functinality for controlling aac placyback using faad and ao. With the aac_play 00028 * function we can specify a mp4/aac file and start and stop offsets. The audio_play 00029 * function starts decoding the aac file. 00030 * Almost all of this file are copyed / inspired by the (minimalistic) FAAD API 00031 * and the FAAD frontend code. 00032 * 00033 * To build with AAC support, this is required: 00034 * - faad2-0 and faad2-dev installed. 00035 * - faad and mp4ff must be linked during build. "gcc (....) -lfaad -lmp4ff" 00036 */ 00037 00038 #ifndef AAC_H_ 00039 #define AAC_H_ 00040 00041 00042 #include <stdbool.h> 00043 00044 #include "audio.h" 00048 /* ************************************************ * 00049 * Global function declarations * 00050 * ************************************************ */ 00051 00056 bool aac_play (struct_audio_data_t *data); 00057 00058 00063 void aac_initiate (struct_audio_data_t *data); 00064 00065 00070 void aac_terminate (struct_audio_data_t *data); 00071 00072 00073 #endif /*AAC_H_*/