From 014b9c5ee33ca1c35c2097ea1c00c20f5fe25dba Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Tue, 1 Jun 2010 22:25:44 +0200 Subject: tta: fixed seek table pos calculation --- plugins/tta/ttadec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/tta') diff --git a/plugins/tta/ttadec.c b/plugins/tta/ttadec.c index 6610acf7..38b58fbf 100644 --- a/plugins/tta/ttadec.c +++ b/plugins/tta/ttadec.c @@ -383,7 +383,7 @@ static void seek_table_init (unsigned int *seek_table, int set_position (tta_info *info, unsigned int _pos) { // pos: seek position = seek_time_ms / SEEK_STEP // int pos = _pos / SEEK_STEP * 1000 / info->SAMPLERATE; - int pos = _pos / info->framelen; + int pos = _pos / info->FRAMELEN; unsigned int seek_pos; if (pos >= info->fframes) return 0; -- cgit v1.2.3