00001 /* 00002 * Copyright (C) 2003-2009 Olivier Boudeville 00003 * 00004 * This file is part of the OSDL library. 00005 * 00006 * The OSDL library is free software: you can redistribute it and/or modify 00007 * it under the terms of either the GNU Lesser General Public License or 00008 * the GNU General Public License, as they are published by the Free Software 00009 * Foundation, either version 3 of these Licenses, or (at your option) 00010 * any later version. 00011 * 00012 * The OSDL library 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 Lesser General Public License and the GNU General Public License 00016 * for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public 00019 * License and of the GNU General Public License along with the OSDL library. 00020 * If not, see <http://www.gnu.org/licenses/>. 00021 * 00022 * Author: Olivier Boudeville (olivier.boudeville@esperide.com) 00023 * 00024 */ 00025 00026 00027 #ifndef OSDL_ARM7_BASE_H_ 00028 #define OSDL_ARM7_BASE_H_ 00029 00030 00031 /* 00032 * OSDL ARM7 code base centralizing all main code for that processor, notably 00033 * for sound management, including PCM and IMA ADPCM sounds, and MP3 music. 00034 * 00035 * User code is expected to define only one callback function: 00036 * 'void handleReceivedApplicationCommand( FIFOCommandID commandID, 00037 * FIFOElement element )', which can be void or better can only contain: 00038 * 'setError( UnexpectedApplicationCommand ) ;' 00039 * and, of course, the main() function, which can be inspired from the examples. 00040 * 00041 * @see testOSDLSound.arm7.c 00042 * 00043 */ 00044 00045 00046 #include "CeylanARM7Base.h" // for Ceylan IPC base 00047 00048 00049 00064 /* Initializes OSDL and its prerequesites. */ 00065 void initOSDL() ; 00066 00067 00068 00073 void manageMP3Playback() ; 00074 00075 00076 00077 #endif // OSDL_ARM7_BASE_H_ 00078