diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-04-23 09:20:10 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-02-20 08:56:03 +0100 |
commit | 1b3144727158b18f080732ff35ef1f6a123a946d (patch) | |
tree | 3cff858317d498ffb02e27364d6a2afde53943c3 /src/decoder_control.h | |
parent | e41776f458722d778b5a0db49816f775ef4f9eee (diff) |
music chunk: switch to AVFrame.
Diffstat (limited to 'src/decoder_control.h')
-rw-r--r-- | src/decoder_control.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/decoder_control.h b/src/decoder_control.h index 566b153e..963e73ea 100644 --- a/src/decoder_control.h +++ b/src/decoder_control.h @@ -104,8 +104,8 @@ struct decoder_control { float total_time; - /** the #music_chunk allocator */ - struct music_buffer *buffer; + /** maximum number of samples to keep buffered */ + int buffer_samples; /** * The destination pipe for decoded chunks. The caller thread @@ -251,10 +251,9 @@ decoder_current_song(const struct decoder_control *dc) * @param pipe the pipe which receives the decoded chunks (owned by * the caller) */ -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); void dc_stop(struct decoder_control *dc); |