diff options
Diffstat (limited to 'apps/codecs/asap')
| -rw-r--r-- | apps/codecs/asap/README.rockbox | 25 | ||||
| -rw-r--r-- | apps/codecs/asap/SOURCES | 3 | ||||
| -rw-r--r-- | apps/codecs/asap/apokeysnd.c | 3 | ||||
| -rw-r--r-- | apps/codecs/asap/asap.c | 14 | ||||
| -rw-r--r-- | apps/codecs/asap/asap.h | 2 |
5 files changed, 43 insertions, 4 deletions
diff --git a/apps/codecs/asap/README.rockbox b/apps/codecs/asap/README.rockbox new file mode 100644 index 0000000..322c130 --- /dev/null +++ b/apps/codecs/asap/README.rockbox @@ -0,0 +1,25 @@ +Library: asap-1.2.0 +Imported: 2008-26-07 by Dominik Wenger + +This directory contains a local version of asap (http://asap.sourceforge.net/) for decoding Atari 8bit .sap +audio streams. + +LICENSING INFORMATION + +Asap is available under the terms of the GPL v2 or later +license, which is both an open source and free software license. +The Licence is the same as the rest of Rockbox. + + +IMPORT DETAILS + +The .[ch] files in apps/codec/asap are copied from ASAP. +Some #defines were added, so it uses the ci-> Pointer. + +A small modification was needed in asap.h Line 120. +(changed the delta buffer to signed char) + +Also players.h (contains binarys of players) was generated and copied +into Rockbox. + + diff --git a/apps/codecs/asap/SOURCES b/apps/codecs/asap/SOURCES new file mode 100644 index 0000000..0d1f1f4 --- /dev/null +++ b/apps/codecs/asap/SOURCES @@ -0,0 +1,3 @@ +acpu.c +asap.c +apokeysnd.c diff --git a/apps/codecs/asap/apokeysnd.c b/apps/codecs/asap/apokeysnd.c index d0a4b1b..1d48bc2 100644 --- a/apps/codecs/asap/apokeysnd.c +++ b/apps/codecs/asap/apokeysnd.c @@ -20,13 +20,14 @@ * along with ASAP; if not, write to the Free Software Foundation, Inc., * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ - +#include "codeclib.h" #if !defined(JAVA) && !defined(CSHARP) #include <string.h> #endif #include "asap_internal.h" +#define memset ci->memset #define ULTRASOUND_CYCLES 112 #define MUTE_FREQUENCY 1 diff --git a/apps/codecs/asap/asap.c b/apps/codecs/asap/asap.c index 084708a..31de730 100644 --- a/apps/codecs/asap/asap.c +++ b/apps/codecs/asap/asap.c @@ -20,7 +20,7 @@ * along with ASAP; if not, write to the Free Software Foundation, Inc., * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ - +#include "codeclib.h" #if !defined(JAVA) && !defined(CSHARP) #include <string.h> #endif @@ -30,6 +30,14 @@ #include "players.h" #endif +#define memcpy ci->memcpy +#define memcmp ci->memcmp +#define memset ci->memset +#define strcpy ci->strcpy +#define strcmp ci->strcmp +#define strstr ci->strcasestr + + #define CMR_BASS_TABLE_OFFSET 0x70f CONST_LOOKUP(byte, cmr_bass_table) = { @@ -1012,7 +1020,7 @@ FILE_FUNC abool parse_sap_header(ASAP_ModuleInfo PTR module_info, i = 0; while (module[module_index] != 0x0d) { line[i++] = (char) module[module_index++]; - if (module_index >= module_len || i >= sizeof(line) - 1) + if (module_index >= module_len || (unsigned)i >= sizeof(line) - 1) return FALSE; } if (++module_index >= module_len || module[module_index++] != 0x0a) @@ -1719,6 +1727,7 @@ int ASAP_SetModuleInfo(const ASAP_ModuleInfo *module_info, const byte ARRAY modu const char *ASAP_CanConvert(const char *filename, const ASAP_ModuleInfo *module_info, const byte ARRAY module, int module_len) { + (void)filename; switch (module_info->type) { case 'B': if (module_info->init == 0x4f3 || module_info->init == 0xf4f3 || module_info->init == 0x4ef) @@ -1755,6 +1764,7 @@ const char *ASAP_CanConvert(const char *filename, const ASAP_ModuleInfo *module_ int ASAP_Convert(const char *filename, const ASAP_ModuleInfo *module_info, const byte ARRAY module, int module_len, byte ARRAY out_module) { + (void) filename; int out_len; byte *dest; int addr; diff --git a/apps/codecs/asap/asap.h b/apps/codecs/asap/asap.h index 194d416..783d628 100644 --- a/apps/codecs/asap/asap.h +++ b/apps/codecs/asap/asap.h @@ -117,7 +117,7 @@ typedef struct { int delta3; int delta4; int skctl; - char delta_buffer[888]; + signed char delta_buffer[888]; } PokeyState; /* Player state. |