documentation index ◦ reference manual ◦ function index

# renpy.music.set_queue_empty_callback

Function: | renpy.music.set_queue_empty_callback | (callback, channel="music"):

This sets a callback function that is called when the queue is empty. This callback is called when the queue first becomes empty, and at least once per interaction while the queue is empty.

The callback is called with no parameters. It can queue sounds by calling renpy.music.queue with the appropriate arguments. Please note that the callback may be called while a sound is playing, as long as a queue slot is empty.

## Example

TODO

documentation index ◦ reference manual ◦ function index