_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.
This commit is contained in:
parent
d73267df5e
commit
d0302d1bbe
@ -93,10 +93,11 @@ struct AudioOutputPlugin {
|
|||||||
void (*close)(AudioOutput *data);
|
void (*close)(AudioOutput *data);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a positive number if the output thread shall delay
|
* Returns a positive number if the output thread shall further
|
||||||
* the next call to play() or pause(). This should be
|
* delay the next call to play() or pause(), which will happen
|
||||||
* implemented instead of doing a sleep inside the plugin,
|
* until this function returns 0. This should be implemented
|
||||||
* because this allows MPD to listen to commands meanwhile.
|
* instead of doing a sleep inside the plugin, because this
|
||||||
|
* allows MPD to listen to commands meanwhile.
|
||||||
*
|
*
|
||||||
* @return the number of milliseconds to wait
|
* @return the number of milliseconds to wait
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user