isReadyForPlayback
isReadyForPlaybackJavaScript
IsReadyForPlayback.net
isReadyForPlaybackAndroid
Description​
Whether the player is ready for starting the playback. 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.
- JavaScript
- C#
- Kotlin
readonly isReadyForPlayback: boolean;
bool IsReadyForPlayback { get; }
val isReadyForPlayback: Boolean
Examples​
- JavaScript
- C#
- Android
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
if(api.isReadyForPlayback)) api.play();
var api = new AlphaTabApi<MyControl>(...);
if(api.IsReadyForPlayback) api.Play();
val api = AlphaTabApi<MyControl>(...)
if (api.isReadyForPlayback) api.play()