* Pauses the playback of the current song. * @category Methods - Player * @since 0.9.4 * * @example * JavaScript * ```js * const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab')); * api.pause(); * ``` * * @example * C#
()
| 1992 | * ``` |
| 1993 | */ |
| 1994 | public pause(): void { |
| 1995 | this._player.pause(); |
| 1996 | } |
| 1997 | |
| 1998 | /** |
| 1999 | * Toggles between play/pause depending on the current player state. |