diff options
Diffstat (limited to 'src/output_all.h')
-rw-r--r-- | src/output_all.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/output_all.h b/src/output_all.h index 197a0bfd2..2a09514b2 100644 --- a/src/output_all.h +++ b/src/output_all.h @@ -105,6 +105,17 @@ unsigned audio_output_all_check(void); /** + * Checks if the size of the #music_pipe is below the #threshold. If + * not, it attempts to synchronize with all output threads, and waits + * until another #music_chunk is finished. + * + * @param threshold the maximum number of chunks in the pipe + * @return true if there are less than #threshold chunks in the pipe + */ +bool +audio_output_all_wait(unsigned threshold); + +/** * Puts all audio outputs into pause mode. Most implementations will * simply close it then. */ |