From cff47262dab4fdf9af2e034037ed8923796972e4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 24 Dec 2014 23:00:15 +0100 Subject: output/jack: pass size_t to WriteSamples() --- src/output/plugins/JackOutputPlugin.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/output') diff --git a/src/output/plugins/JackOutputPlugin.cxx b/src/output/plugins/JackOutputPlugin.cxx index 9dd63562e..acfd1ae0e 100644 --- a/src/output/plugins/JackOutputPlugin.cxx +++ b/src/output/plugins/JackOutputPlugin.cxx @@ -111,7 +111,7 @@ struct JackOutput { void Process(jack_nframes_t nframes); - void WriteSamples(const void *src, unsigned num_samples); + void WriteSamples(const void *src, size_t n_frames); size_t Play(const void *chunk, size_t size, Error &error); }; @@ -637,11 +637,11 @@ mpd_jack_delay(AudioOutput *ao) } inline void -JackOutput::WriteSamples(const void *_src, unsigned num_samples) +JackOutput::WriteSamples(const void *_src, size_t n_frames) { const float *src = (const float *)_src; - while (num_samples-- > 0) { + while (n_frames-- > 0) { for (unsigned i = 0; i < audio_format.channels; ++i, ++src) { jack_ringbuffer_write(ringbuffer[i], (const char *)src, -- cgit v1.2.3