Reference Manual: (offline | online) Quickstart: (offline | online)

# renpy.sound.set_queue_empty_callback

Function: renpy.sound.set_queue_empty_callback( | callback, channel=0)

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.sound.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

Reference Manual: (offline | online) Quickstart: (offline | online)