summaryrefslogtreecommitdiff
path: root/cgme.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgme.c')
-rw-r--r--cgme.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cgme.c b/cgme.c
index dd6480fe..b9722ace 100644
--- a/cgme.c
+++ b/cgme.c
@@ -43,7 +43,7 @@ cgme_init (playItem_t *it) {
cgme.info.samplesPerSecond = p_get_rate ();
reallength = inf.length;
nzerosamples = 0;
- cgme.info.position = 0;
+ cgme.info.readposition = 0;
return 0;
}
@@ -58,8 +58,8 @@ cgme_free (void) {
int
cgme_read (char *bytes, int size) {
float t = (size/4) / (float)cgme.info.samplesPerSecond;
- if (cgme.info.position + t >= playlist_current.duration) {
- t = playlist_current.duration - cgme.info.position;
+ if (cgme.info.readposition + t >= playlist_current.duration) {
+ t = playlist_current.duration - cgme.info.readposition;
if (t <= 0) {
return 0;
}
@@ -96,7 +96,7 @@ cgme_seek (float time) {
if (gme_seek (emu, (long)(time * 1000))) {
return -1;
}
- cgme.info.position = time;
+ cgme.info.readposition = time;
return 0;
}