mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-05 14:57:46 -04:00
cso support
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@303 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
93c0d147a1
commit
6d741b3258
6 changed files with 17 additions and 11 deletions
|
@ -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
|
Be sure NOT to use anything but classic mp3 format (don't use things like
|
||||||
mp3pro).
|
mp3pro).
|
||||||
|
|
||||||
ISO files can also be zipped (but not mp3 files, as they are already
|
ISO files can also be .cso compressed or zipped (but not mp3 files, as they
|
||||||
compressed). Note that this can cause very long loading times, which may
|
are already compressed). CSO will cause slightly longer loading times, and
|
||||||
take up to several minutes. File naming is similar as with uncompressed ISOs.
|
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:
|
Example:
|
||||||
|
|
||||||
SonicCD.zip data track
|
SonicCD.cso data track
|
||||||
SonicCD_02.mp3 audio track 1 (CD track 2)
|
SonicCD_02.mp3 audio track 1 (CD track 2)
|
||||||
SonicCD_03.mp3
|
SonicCD_03.mp3
|
||||||
...
|
...
|
||||||
|
@ -123,11 +125,14 @@ Other important stuff
|
||||||
Incorrectly named/missing mp3s may also be the cause.
|
Incorrectly named/missing mp3s may also be the cause.
|
||||||
* Sega/Mega CD: If the background music is missing, you might have named your
|
* 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.
|
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
|
* Sega/Mega CD: If the game music plays too fast/too slow/out of sync, you have
|
||||||
your MP3s incorrectly. You will have to re-encode and/or resample them.
|
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.
|
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
|
Badly encoded mp3s can cause various kind of problems, like noises, incorrect
|
||||||
playback speeds, not repeating music or even prevent game from starting.
|
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),
|
* 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.
|
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,
|
* Some Sega/Mega CD games don't use Z80 for anything, but they leave it active,
|
||||||
|
@ -631,6 +636,7 @@ Changelog
|
||||||
1.35b
|
1.35b
|
||||||
* PSP: mp3 code should no longer fail on 1.5 firmware.
|
* PSP: mp3 code should no longer fail on 1.5 firmware.
|
||||||
+ PSP: added gamma adjustment option.
|
+ 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).
|
* 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
|
* PSP: fixed another bug in memhanlers, which crashed the emu for some games
|
||||||
(like NBA Jam).
|
(like NBA Jam).
|
||||||
|
|
|
@ -172,7 +172,7 @@ void menu_romload_end(void)
|
||||||
static unsigned short file2color(const char *fname)
|
static unsigned short file2color(const char *fname)
|
||||||
{
|
{
|
||||||
const char *ext = fname + strlen(fname) - 3;
|
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" };
|
static const char *other_exts[] = { "gmv", "pat" };
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|
|
@ -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
|
OBJS += Pico/sound/sound.o Pico/sound/sn76496.o Pico/sound/ym2612.o Pico/sound/mix.o
|
||||||
# zlib
|
# zlib
|
||||||
OBJS += zlib/gzio.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o \
|
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
|
# unzip
|
||||||
OBJS += unzip/unzip.o unzip/unzip_stream.o
|
OBJS += unzip/unzip.o unzip/unzip_stream.o
|
||||||
# CPU cores
|
# CPU cores
|
||||||
|
|
|
@ -535,7 +535,7 @@ static int sound_thread(SceSize args, void *argp)
|
||||||
|
|
||||||
// shouln't happen, but just in case
|
// shouln't happen, but just in case
|
||||||
if (samples_made - samples_done >= samples_block*3) {
|
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
|
samples_done += samples_block; // skip
|
||||||
snd_playptr += samples_block;
|
snd_playptr += samples_block;
|
||||||
}
|
}
|
||||||
|
|
|
@ -185,7 +185,7 @@ struct my_dirent
|
||||||
static unsigned short file2color(const char *fname)
|
static unsigned short file2color(const char *fname)
|
||||||
{
|
{
|
||||||
const char *ext = fname + strlen(fname) - 3;
|
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" };
|
static const char *other_exts[] = { "gmv", "pat" };
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ extern void blit1(void);
|
||||||
#define CAN_HANDLE_240_LINES 1
|
#define CAN_HANDLE_240_LINES 1
|
||||||
|
|
||||||
// logging emu events
|
// 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(f,...) printf("%05i:%03i: " f "\n",Pico.m.frame_count,Pico.m.scanline,##__VA_ARGS__)
|
||||||
#define dprintf(x...)
|
#define dprintf(x...)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue