aboutsummaryrefslogtreecommitdiff
path: root/src/pipe.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pipe.h')
-rw-r--r--src/pipe.h18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/pipe.h b/src/pipe.h
index 84b9869e..c8adfd6e 100644
--- a/src/pipe.h
+++ b/src/pipe.h
@@ -28,7 +28,6 @@ struct audio_format;
#endif
struct music_chunk;
-struct music_buffer;
/**
* A queue of #music_chunk objects. One party appends chunks at the
@@ -83,12 +82,9 @@ struct music_chunk *
music_pipe_shift(struct music_pipe *mp);
/**
- * Clears the whole pipe and returns the chunks to the buffer.
- *
- * @param buffer the buffer object to return the chunks to
+ * Clears the whole pipe and frees all the chunks.
*/
-void
-music_pipe_clear(struct music_pipe *mp, struct music_buffer *buffer);
+void music_pipe_clear(struct music_pipe *mp);
/**
* Pushes a chunk to the tail of the pipe.
@@ -97,15 +93,11 @@ void
music_pipe_push(struct music_pipe *mp, struct music_chunk *chunk);
/**
- * Returns the number of chunks currently in this pipe.
+ * Returns the number of samples currently in this pipe.
*/
-G_GNUC_PURE
-unsigned
-music_pipe_size(const struct music_pipe *mp);
+unsigned music_pipe_size(struct music_pipe *mp);
-G_GNUC_PURE
-static inline bool
-music_pipe_empty(const struct music_pipe *mp)
+static inline bool music_pipe_empty(struct music_pipe *mp)
{
return music_pipe_size(mp) == 0;
}