aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-24 23:00:15 +0100
committerMax Kellermann <max@duempel.org>2014-12-24 23:00:15 +0100
commitcff47262dab4fdf9af2e034037ed8923796972e4 (patch)
tree474eed6f5a009107a0424e957ae2d7d1decf0439 /src/output
parentda83eae754548b047c7b27fb29d75d8467f7f20f (diff)
downloadmpd-cff47262dab4fdf9af2e034037ed8923796972e4.tar.gz
mpd-cff47262dab4fdf9af2e034037ed8923796972e4.tar.xz
mpd-cff47262dab4fdf9af2e034037ed8923796972e4.zip
output/jack: pass size_t to WriteSamples()
Diffstat (limited to '')
-rw-r--r--src/output/plugins/JackOutputPlugin.cxx6
1 files changed, 3 insertions, 3 deletions
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,