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_CODES_H_ 00028 #define OSDL_ARM7_CODES_H_ 00029 00030 00031 /* 00032 * For Ceylan base codes. 00033 * 00034 */ 00035 00036 00037 #include "CeylanARM7Codes.h" 00038 00039 00040 00074 /* ARM7 detected an unexpected OSDL-specific command */ 00075 const ARM7ErrorCode UnexpectedOSDLCommand = 1024 ; 00076 00077 00078 /* The sound playback handler encountered an unknown sample format */ 00079 const ARM7ErrorCode UnexpectedSampleFormat = 1025 ; 00080 00081 00082 00089 /* 00090 * The initialization of the Helix decoder failed (most probably: not enough 00091 * memory to malloc internal buffers 00092 */ 00093 const ARM7ErrorCode HelixInitializationFailed = 1056 ; 00094 00095 00096 /* The Helix decoder could not find the next sync word in the raw mp3 stream */ 00097 const ARM7ErrorCode HelixSyncWordNotFound = 1057 ; 00098 00099 00100 /* 00101 * The Helix decoder is out of data, found a truncated or last frame in 00102 * the raw mp3 stream */ 00103 const ARM7ErrorCode HelixFoundTruncatedFrame = 1058 ; 00104 00105 00106 /* 00107 * The Helix decoder does not have enough data in bit reservoir from previous 00108 * frames. Perhaps starting in the middle of a mp3 file? 00109 * 00110 */ 00111 const ARM7ErrorCode HelixLacksDataInBitReservoir = 1059 ; 00112 00113 00114 /* 00115 * The Helix decoder lacks a free bitrate slot. 00116 * 00117 */ 00118 const ARM7ErrorCode HelixLacksFreeBitrateSlot = 1060 ; 00119 00120 00121 /* 00122 * The Helix decoding failed. 00123 * 00124 */ 00125 const ARM7ErrorCode HelixDecodingError = 1061 ; 00126 00127 00128 /* 00129 * The length of a decoded frame is not the expected one. 00130 * 00131 */ 00132 const ARM7ErrorCode HelixUnexpectedDecodedLength = 1062 ; 00133 00134 00135 00136 00137 /* 00138 * Ensures CEYLAN_SAFE_FIFO is deactivated, as the second byte of the command 00139 * FIFO element is used by OSDL. 00140 * 00141 */ 00142 00143 #ifdef CEYLAN_SAFE_FIFO 00144 00145 00146 #if CEYLAN_SAFE_FIFO 00147 00148 #error OSDL needs the Ceylan FIFO debugging feature to be turned off. 00149 00150 #endif // CEYLAN_SAFE_FIFO 00151 00152 00153 #else // CEYLAN_SAFE_FIFO 00154 00155 #define CEYLAN_SAFE_FIFO 0 00156 00157 #endif // ifdef CEYLAN_SAFE_FIFO 00158 00159 00160 00161 #endif // OSDL_ARM7_CODES_H_ 00162