diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-08-29 10:57:49 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-08-29 10:57:49 +0000 |
| commit | ba48ba37037f0fde667c3f92f863b09c3446acce (patch) | |
| tree | dac91b2424d83f89c33091dc730bfa2b3c955fc5 /libpcsxcore | |
| parent | c069f20b54965ea0ad89c1010e549480bd018b76 (diff) | |
| download | pcsxr-ba48ba37037f0fde667c3f92f863b09c3446acce.tar.gz | |
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@28100 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore')
| -rw-r--r-- | libpcsxcore/cdriso.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c index dbcf5147..94977022 100644 --- a/libpcsxcore/cdriso.c +++ b/libpcsxcore/cdriso.c @@ -111,6 +111,14 @@ static void tok2msf(char *time, char *msf) { } } +// start the CDDA playback +static void startCDDA(unsigned int offset) { +} + +// stop the CDDA playback +static void stopCDDA() { +} + // this function tries to get the .toc file of the given .bin // the necessary data is put into the ti (trackinformation)-array static int parsetoc(const char *isofile) { @@ -381,6 +389,7 @@ static long CALLBACK ISOshutdown(void) { fclose(subHandle); subHandle = NULL; } + stopCDDA(); return 0; } @@ -426,6 +435,7 @@ static long CALLBACK ISOclose(void) { fclose(subHandle); subHandle = NULL; } + stopCDDA(); return 0; } @@ -494,12 +504,17 @@ static unsigned char * CALLBACK ISOgetBuffer(void) { // sector: byte 0 - minute; byte 1 - second; byte 2 - frame // does NOT uses bcd format static long CALLBACK ISOplay(unsigned char *time) { - return 0; // TODO + if (SPU_playCDDAchannel != NULL) { + SysPrintf("Starting cdda-audio (%i:%i:%i)...\n", time[0], time[1], time[2]); + startCDDA(MSF2SECT(time[0], time[1], time[2]) * CD_FRAMESIZE_RAW); + } + return 0; } // stops cdda audio static long CALLBACK ISOstop(void) { - return 0; // TODO + stopCDDA(); + return 0; } // gets subchannel data |
