aboutsummaryrefslogtreecommitdiffstats
path: root/src/pipe.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-13 02:06:58 +0100
committerMax Kellermann <max@duempel.org>2008-11-13 02:06:58 +0100
commit66ce1495f07cd065346cdc2067b034e142a0fa96 (patch)
treeec22214c5fa70395b38310c0722db97b9f0c362c /src/pipe.h
parent998d9a822535e3cb88801487e95acef296cae9a3 (diff)
downloadmpd-66ce1495f07cd065346cdc2067b034e142a0fa96.tar.gz
mpd-66ce1495f07cd065346cdc2067b034e142a0fa96.tar.xz
mpd-66ce1495f07cd065346cdc2067b034e142a0fa96.zip
music_pipe: continuously check the sample format of all chunks
Provide a debug function which asserts on the sample format of all chunks. Call this function in each iteration of the player main loop.
Diffstat (limited to 'src/pipe.h')
-rw-r--r--src/pipe.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pipe.h b/src/pipe.h
index f65e12d49..78389d062 100644
--- a/src/pipe.h
+++ b/src/pipe.h
@@ -164,4 +164,9 @@ bool music_pipe_tag(const struct tag *tag);
void music_pipe_skip(unsigned num);
+#ifndef NDEBUG
+void music_pipe_check_format(const struct audio_format *current,
+ int next_index, const struct audio_format *next);
+#endif
+
#endif