notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cb76aa
)
cdriso: don't try to play audio if tracks are missing
author
notaz
<notasas@gmail.com>
Tue, 14 Dec 2010 16:59:22 +0000
(18:59 +0200)
committer
notaz
<notasas@gmail.com>
Thu, 16 Dec 2010 16:37:56 +0000
(18:37 +0200)
to prevent random noise
libpcsxcore/cdriso.c
patch
|
blob
|
blame
|
history
diff --git
a/libpcsxcore/cdriso.c
b/libpcsxcore/cdriso.c
index
18b0de9
..
45199f5
100644
(file)
--- 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));