Commit d0302d1b authored by Yue Wang's avatar Yue Wang Committed by Wang-Yue

_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.
parent d73267df
......@@ -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
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment