diff options
author | 2011-04-03 20:17:46 +0200 | |
---|---|---|
committer | 2011-04-03 20:17:46 +0200 | |
commit | e427b8b628b00e88dfd84d0e1ce86828fddad91b (patch) | |
tree | cae8c1a2f9117e3d583f71676f856c0d1f16803c /plugins/wavpack | |
parent | c5581ddefc566f300aad914a19a51e726c6cf897 (diff) |
fixed wavpack + gapless cue playback
Diffstat (limited to 'plugins/wavpack')
-rw-r--r-- | plugins/wavpack/wavpack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/wavpack/wavpack.c b/plugins/wavpack/wavpack.c index 39f2e66f..eafed0d4 100644 --- a/plugins/wavpack/wavpack.c +++ b/plugins/wavpack/wavpack.c @@ -198,16 +198,16 @@ wv_free (DB_fileinfo_t *_info) { static int wv_read (DB_fileinfo_t *_info, char *bytes, int size) { wvctx_t *info = (wvctx_t *)_info; - int initsize = size; int currentsample = WavpackGetSampleIndex (info->ctx); int samplesize = _info->fmt.channels * _info->fmt.bps / 8; if (size / samplesize + currentsample > info->endsample) { size = (info->endsample - currentsample + 1) * samplesize; - trace ("wv: size truncated to %d bytes, cursample=%d, endsample=%d\n", size, currentsample, info->endsample); + trace ("wv: size truncated to %d bytes (%d samples), cursample=%d, endsample=%d\n", size, info->endsample - currentsample + 1, currentsample, info->endsample); if (size <= 0) { return 0; } } + int initsize = size; int n; if (WavpackGetMode (info->ctx) & MODE_FLOAT) { _info->fmt.is_float = 1; |