output: pass the music chunk pointer as void*, not char*

The meaning of the chunk depends on the audio format; don't suggest a
specific format by declaring the pointer as "char*", pass "void*"
instead.
This commit is contained in:
Max Kellermann
2009-02-23 09:34:26 +01:00
parent 5a898c15e7
commit a4dfab2aee
14 changed files with 21 additions and 21 deletions
+2 -2
View File
@@ -388,7 +388,7 @@ mpd_jack_write_samples(struct jack_data *jd, const void *src,
}
static size_t
mpd_jack_play(void *data, const char *buff, size_t size)
mpd_jack_play(void *data, const void *chunk, size_t size)
{
struct jack_data *jd = data;
const size_t frame_size = audio_format_frame_size(&jd->audio_format);
@@ -421,7 +421,7 @@ mpd_jack_play(void *data, const char *buff, size_t size)
if (space < size)
size = space;
mpd_jack_write_samples(jd, buff, size);
mpd_jack_write_samples(jd, chunk, size);
return size * frame_size;
}