summaryrefslogtreecommitdiff
path: root/cdumb.c
diff options
context:
space:
mode:
Diffstat (limited to 'cdumb.c')
-rw-r--r--cdumb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cdumb.c b/cdumb.c
index 5e643fe9..9d23239c 100644
--- a/cdumb.c
+++ b/cdumb.c
@@ -97,7 +97,7 @@ cdumb_init (playItem_t *it) {
cdumb.info.bitsPerSample = 16;
cdumb.info.channels = 2;
cdumb.info.samplesPerSecond = p_get_rate ();
- cdumb.info.position = 0;
+ cdumb.info.readposition = 0;
if (cdumb_startrenderer () < 0) {
return -1;
@@ -150,15 +150,15 @@ cdumb_read (char *bytes, int size) {
int
cdumb_seek (float time) {
- if (time < cdumb.info.position) {
+ if (time < cdumb.info.readposition) {
cdumb_startrenderer ();
}
else {
- time -= cdumb.info.position;
+ time -= cdumb.info.readposition;
}
int pos = time * cdumb.info.samplesPerSecond;
duh_sigrenderer_generate_samples (renderer, 0, 65536.0f / cdumb.info.samplesPerSecond, pos, NULL);
- cdumb.info.position = duh_sigrenderer_get_position (renderer) / 65536.f;
+ cdumb.info.readposition = duh_sigrenderer_get_position (renderer) / 65536.f;
return 0;
}