Since: 0.9.4

isReadyForPlayback

Description

Gets whether the synthesizer is ready for playback. The player is ready for playback when all background workers are started, the audio output is initialized, a soundfont is loaded, and a song was loaded into the player as midi file.

Types

boolAll

Examples

var api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
if(api.isReadyForPlayback)) api.play();
var at = $('#alphaTab');
if(at.alphaTab('isReadyForPlayback')) at.alphaTab('play');
var api = new AlphaTabApi<MyControl>(...);
if(api.IsReadyForPlayback) api.Play();