From e1bd2c65d5ad75a79e7a2bac9f4b6b778951c786 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 9 Mar 2009 19:15:54 +0100 Subject: music_pipe: added music_pipe_contains() --- src/pipe.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/pipe.h') diff --git a/src/pipe.h b/src/pipe.h index dd97ce82..8b7b457a 100644 --- a/src/pipe.h +++ b/src/pipe.h @@ -47,6 +47,7 @@ void music_pipe_free(struct music_pipe *mp); #ifndef NDEBUG + /** * Checks if the audio format if the chunk is equal to the specified * audio_format. @@ -54,6 +55,14 @@ music_pipe_free(struct music_pipe *mp); bool music_pipe_check_format(const struct music_pipe *pipe, const struct audio_format *audio_format); + +/** + * Checks if the specified chunk is enqueued in the music pipe. + */ +bool +music_pipe_contains(const struct music_pipe *mp, + const struct music_chunk *chunk); + #endif /** -- cgit v1.2.3