Commit 921d2748 authored by Stefan Westerfeld's avatar Stefan Westerfeld

Use size_t instead of int to support long seeks.

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent b2941170
......@@ -415,11 +415,11 @@ public:
skip (size_t zeros)
{
/* skipping a whole 1 second block should end in the same resampler state we had at the beginning */
int seconds = 0;
size_t seconds = 0;
if (zeros >= Params::frame_size)
seconds = (zeros - Params::frame_size) / old_rate;
const int extra = new_rate * seconds;
const size_t extra = new_rate * seconds;
zeros -= old_rate * seconds;
write_frames (vector<float> (zeros * n_channels));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment