From d0302d1bbe0b9bff14d4f38893acd2a878b5fb8d Mon Sep 17 00:00:00 2001 From: Yue Wang Date: Mon, 19 Sep 2016 09:53:40 -0700 Subject: [PATCH] _delay in output plugin will now ask the thread to repeatedly wait until it returns 0. change the _delay API doc so that it matches its implementation behavior. --- src/output/OutputPlugin.hxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/output/OutputPlugin.hxx b/src/output/OutputPlugin.hxx index b421ae637..94a950d3a 100644 --- a/src/output/OutputPlugin.hxx +++ b/src/output/OutputPlugin.hxx @@ -93,10 +93,11 @@ struct AudioOutputPlugin { void (*close)(AudioOutput *data); /** - * Returns a positive number if the output thread shall delay - * the next call to play() or pause(). This should be - * implemented instead of doing a sleep inside the plugin, - * because this allows MPD to listen to commands meanwhile. + * Returns a positive number if the output thread shall further + * delay the next call to play() or pause(), which will happen + * until this function returns 0. This should be implemented + * instead of doing a sleep inside the plugin, because this + * allows MPD to listen to commands meanwhile. * * @return the number of milliseconds to wait */