From 15af1ef566b2aa2ddb820b34c5ea65e6ef3ee65b Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Wed, 2 Jun 2010 19:23:31 +0200 Subject: fixed tta seeking and gapless playback --- plugins/tta/ttaplug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/tta') diff --git a/plugins/tta/ttaplug.c b/plugins/tta/ttaplug.c index 3775efa0..87d78f8b 100644 --- a/plugins/tta/ttaplug.c +++ b/plugins/tta/ttaplug.c @@ -167,7 +167,8 @@ tta_seek_sample (DB_fileinfo_t *_info, int sample) { return -1; } - info->currentsample = sample; + info->currentsample = sample + info->startsample; + info->remaining = 0; _info->readpos = sample / _info->samplerate; return 0; } -- cgit v1.2.3