aboutsummaryrefslogtreecommitdiff
path: root/src/decoder_control.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/decoder_control.c')
-rw-r--r--src/decoder_control.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/decoder_control.c b/src/decoder_control.c
index 70f34b33..5c952d9d 100644
--- a/src/decoder_control.c
+++ b/src/decoder_control.c
@@ -94,20 +94,18 @@ dc_command_async(struct decoder_control *dc, enum decoder_command cmd)
decoder_unlock(dc);
}
-void
-dc_start(struct decoder_control *dc, struct song *song,
- unsigned start_ms, unsigned end_ms,
- struct music_buffer *buffer, struct music_pipe *pipe)
+void dc_start(struct decoder_control *dc, struct song *song,
+ unsigned start_ms, unsigned end_ms,
+ int buffer_samples, struct music_pipe *pipe)
{
assert(song != NULL);
- assert(buffer != NULL);
assert(pipe != NULL);
assert(music_pipe_empty(pipe));
dc->song = song;
dc->start_ms = start_ms;
dc->end_ms = end_ms;
- dc->buffer = buffer;
+ dc->buffer_samples = buffer_samples;
dc->pipe = pipe;
dc_command(dc, DECODE_COMMAND_START);
}