From: notaz Date: Tue, 14 Dec 2010 16:59:22 +0000 (+0200) Subject: cdriso: don't try to play audio if tracks are missing X-Git-Tag: r1~25 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=commitdiff_plain;h=7b8da7ab9586be3041c25cc6109d52567eb68c70 cdriso: don't try to play audio if tracks are missing to prevent random noise --- diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c index 18b0de92..45199f50 100644 --- a/libpcsxcore/cdriso.c +++ b/libpcsxcore/cdriso.c @@ -809,6 +809,9 @@ 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) { + if (numtracks <= 1) + return 0; + if (SPU_playCDDAchannel != NULL) { if (subChanMixed) { startCDDA(MSF2SECT(time[0], time[1], time[2]) * (CD_FRAMESIZE_RAW + SUB_FRAMESIZE));