From: notaz Date: Sat, 24 Nov 2007 20:50:16 +0000 (+0000) Subject: cso support X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d741b3258179dadc7890f45e155b0a6871ebdc5;p=libpicofe.git cso support git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@303 be3aeb3a-fb24-0410-a615-afba39da0efa --- diff --git a/base_readme.txt b/base_readme.txt index 3c00425..97334e0 100644 --- a/base_readme.txt +++ b/base_readme.txt @@ -99,12 +99,14 @@ must be stereo, or else they will play too fast/slow or won't play at all. Be sure NOT to use anything but classic mp3 format (don't use things like mp3pro). -ISO files can also be zipped (but not mp3 files, as they are already -compressed). Note that this can cause very long loading times, which may -take up to several minutes. File naming is similar as with uncompressed ISOs. +ISO files can also be .cso compressed or zipped (but not mp3 files, as they +are already compressed). CSO will cause slightly longer loading times, and +is not very good for FMV games. Zipping ISOs is not recommened, as it will +cause very long (several minute) loading times, and make some games +unplayable. File naming is similar as with uncompressed ISOs. Example: -SonicCD.zip data track +SonicCD.cso data track SonicCD_02.mp3 audio track 1 (CD track 2) SonicCD_03.mp3 ... @@ -123,11 +125,14 @@ Other important stuff Incorrectly named/missing mp3s may also be the cause. * Sega/Mega CD: If the background music is missing, you might have named your MP3s incorrectly. Read "How to run Sega/Mega CD games" section again. -* Sega/Mega CD: If the game music plays too fast or too slow, you have encoded - your MP3s incorrectly. You will have to re-encode and/or resample them. +* Sega/Mega CD: If the game music plays too fast/too slow/out of sync, you have + encoded your MP3s incorrectly. You will have to re-encode and/or resample them. PicoDrive is not a mp3 player, so all mp3s MUST be encoded at 44.1kHz stereo. Badly encoded mp3s can cause various kind of problems, like noises, incorrect playback speeds, not repeating music or even prevent game from starting. + Some games (like Snatcher) may hang in certain scenes because of this. + Some mp3 rippers/encoders remove silence and beginning/end of audio tracks, + what causes audio desyncs and/or mentioned problems. * Sega/Mega CD: If your games hangs at the BIOS screen (with planets shown), you may be using a bad BIOS dump. Try another from a different source. * Some Sega/Mega CD games don't use Z80 for anything, but they leave it active, @@ -631,6 +636,7 @@ Changelog 1.35b * PSP: mp3 code should no longer fail on 1.5 firmware. + PSP: added gamma adjustment option. + + Added .cso format support. Useful for non-FMV games. * Fixed a sram bug in memhandlers (fixes Shining in the Darkness saves). * PSP: fixed another bug in memhanlers, which crashed the emu for some games (like NBA Jam). diff --git a/gp2x/menu.c b/gp2x/menu.c index 7dd2e58..7acfa53 100644 --- a/gp2x/menu.c +++ b/gp2x/menu.c @@ -172,7 +172,7 @@ void menu_romload_end(void) static unsigned short file2color(const char *fname) { const char *ext = fname + strlen(fname) - 3; - static const char *rom_exts[] = { "zip", "bin", "smd", "gen", "iso" }; + static const char *rom_exts[] = { "zip", "bin", "smd", "gen", "iso", "cso" }; static const char *other_exts[] = { "gmv", "pat" }; int i; diff --git a/linux/Makefile b/linux/Makefile index c9a281e..870b1b3 100644 --- a/linux/Makefile +++ b/linux/Makefile @@ -45,7 +45,7 @@ OBJS += Pico/cd/Pico.o Pico/cd/Memory.o Pico/cd/Sek.o Pico/cd/LC89510.o \ OBJS += Pico/sound/sound.o Pico/sound/sn76496.o Pico/sound/ym2612.o Pico/sound/mix.o # zlib OBJS += zlib/gzio.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o \ - zlib/deflate.o zlib/crc32.o zlib/adler32.o zlib/zutil.o zlib/compress.o + zlib/deflate.o zlib/crc32.o zlib/adler32.o zlib/zutil.o zlib/compress.o zlib/uncompr.o # unzip OBJS += unzip/unzip.o unzip/unzip_stream.o # CPU cores diff --git a/psp/emu.c b/psp/emu.c index 4292615..665e41c 100644 --- a/psp/emu.c +++ b/psp/emu.c @@ -535,7 +535,7 @@ static int sound_thread(SceSize args, void *argp) // shouln't happen, but just in case if (samples_made - samples_done >= samples_block*3) { - lprintf("sthr: block skip (%i)\n", samples_made - samples_done); + //lprintf("sthr: block skip (%i)\n", samples_made - samples_done); samples_done += samples_block; // skip snd_playptr += samples_block; } diff --git a/psp/menu.c b/psp/menu.c index 5fb2d04..fc44446 100644 --- a/psp/menu.c +++ b/psp/menu.c @@ -185,7 +185,7 @@ struct my_dirent static unsigned short file2color(const char *fname) { const char *ext = fname + strlen(fname) - 3; - static const char *rom_exts[] = { "zip", "bin", "smd", "gen", "iso" }; + static const char *rom_exts[] = { "zip", "bin", "smd", "gen", "iso", "cso" }; static const char *other_exts[] = { "gmv", "pat" }; int i; diff --git a/psp/port_config.h b/psp/port_config.h index 231db72..93cffa7 100644 --- a/psp/port_config.h +++ b/psp/port_config.h @@ -22,7 +22,7 @@ extern void blit1(void); #define CAN_HANDLE_240_LINES 1 // logging emu events -#define EL_LOGMASK 0 // (EL_STATUS|EL_ANOMALY|EL_UIO|EL_SRAMIO) // xffff +#define EL_LOGMASK EL_STATUS // (EL_STATUS|EL_ANOMALY|EL_UIO|EL_SRAMIO) // xffff //#define dprintf(f,...) printf("%05i:%03i: " f "\n",Pico.m.frame_count,Pico.m.scanline,##__VA_ARGS__) #define dprintf(x...)