class documentation
class BackgroundMusicContext(object):
Constructor: BackgroundMusicContext(player_callback)
Run background music in a given context
<b>WARNING: Not verified to work on macOS! Should work there as well, since also creates a subprocess under the hood.</b>
Method | __enter__ |
Undocumented |
Method | __exit__ |
Undocumented |
Method | __init__ |
Create new background music context |
Instance Variable | __thread |
Undocumented |
Create new background music context
Parameters | |
playerCallable[ | Callback to run the music, defaults to<i>script_background_music.play.play_random_music_in_background</i> |