diff options
author | waker <wakeroid@gmail.com> | 2009-08-16 21:43:45 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-08-16 21:43:45 +0200 |
commit | 090ea2c0ad39873550092bde1608ffc9ce31d296 (patch) | |
tree | 517a10cfdbbf666c05bbe97f9e08344e42bd9668 /cdumb.c | |
parent | 7a72b074f0f5108ff56a7ec770a58cc0bfca908b (diff) |
fixed flac/cue playback
Diffstat (limited to 'cdumb.c')
-rw-r--r-- | cdumb.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } |