diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-05-19 10:52:11 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-05-19 10:52:11 +0000 |
| commit | 0956549379a239182714ca5f06bb40748e3a54a5 (patch) | |
| tree | f3b4e0b2e5ef1125940ad6ae029ffdf066063484 /libpcsxcore/cdrom.c | |
| parent | b24d4d3cd394aa86691d69156f3fb108c3537582 (diff) | |
| download | pcsxr-0956549379a239182714ca5f06bb40748e3a54a5.tar.gz | |
Use SDL for sound plugin, reverted the change to BIAS in r48024. (and I'm too lazy to hunt down the bug with x64 dynarec :( feel free to revert this revert if not preferred :P)
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@48308 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore/cdrom.c')
| -rw-r--r-- | libpcsxcore/cdrom.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libpcsxcore/cdrom.c b/libpcsxcore/cdrom.c index db449103..30ead1c2 100644 --- a/libpcsxcore/cdrom.c +++ b/libpcsxcore/cdrom.c @@ -85,8 +85,8 @@ unsigned char Test23[] = { 0x43, 0x58, 0x44, 0x32, 0x39 ,0x34, 0x30, 0x51 }; // 1x = 75 sectors per second // PSXCLK = 1 sec in the ps -// so (PSXCLK / 75) = cdr read time (linuzappz) -#define cdReadTime (PSXCLK / 75) +// so (PSXCLK / 75) / BIAS = cdr read time (linuzappz) +#define cdReadTime ((PSXCLK / 75) / BIAS) static struct CdrStat stat; static struct SubQ *subq; @@ -1057,9 +1057,9 @@ void cdrWrite3(unsigned char rt) { cdr.Irq = 0; return; } - if (cdr.Irq) + if (cdr.Irq) CDR_INT(cdr.eCycle); - if (cdr.Reading && !cdr.ResultReady) + if (cdr.Reading && !cdr.ResultReady) CDREAD_INT((cdr.Mode & 0x80) ? (cdReadTime / 2) : cdReadTime); return; @@ -1068,7 +1068,7 @@ void cdrWrite3(unsigned char rt) { cdr.Readed = 1; cdr.pTransfer = cdr.Transfer; - switch (cdr.Mode&0x30) { + switch (cdr.Mode & 0x30) { case 0x10: case 0x00: cdr.pTransfer += 12; |
