summaryrefslogtreecommitdiff
path: root/libpcsxcore/cdriso.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpcsxcore/cdriso.c')
-rw-r--r--libpcsxcore/cdriso.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c
index d8fee15e..89e12109 100644
--- a/libpcsxcore/cdriso.c
+++ b/libpcsxcore/cdriso.c
@@ -132,6 +132,11 @@ static long GetTickCount(void) {
}
#endif
+
+u16 *iso_play_cdbuf;
+u16 iso_play_bufptr;
+
+
// this thread plays audio data
#ifdef _WIN32
static void playthread(void *param)
@@ -145,6 +150,9 @@ static void *playthread(void *param)
t = GetTickCount();
+ iso_play_cdbuf = 0;
+ iso_play_bufptr = 0;
+
while (playing) {
d = t - (long)GetTickCount();
if (d <= 0) {
@@ -212,6 +220,7 @@ static void *playthread(void *param)
SPU_playCDDAchannel((short *)sndbuffer, s);
}
+
cddaCurOffset += s;
@@ -251,6 +260,11 @@ static void *playthread(void *param)
fseek( cddaHandle, s * CD_FRAMESIZE_RAW, SEEK_SET );
#endif
}
+
+
+ // Vib Ribbon: decoded buffer IRQ
+ iso_play_cdbuf = sndbuffer;
+ iso_play_bufptr = 0;
}
#ifdef _WIN32