* Applies any changes that were done to the settings object. * @remarks * It also informs the renderer about any new values to consider. * By default alphaTab will not trigger any re-rendering or settings update just if the settings object itself was changed. This method must
()
| 547 | * ``` |
| 548 | */ |
| 549 | public updateSettings(): void { |
| 550 | this.settings.handleBackwardsCompatibility(); |
| 551 | |
| 552 | const score = this.score; |
| 553 | if (score) { |
| 554 | ModelUtils.applyPitchOffsets(this.settings, score); |
| 555 | } |
| 556 | |
| 557 | this._updateRenderer(); |
| 558 | |
| 559 | this._renderer.updateSettings(this.settings); |
| 560 | this._setupOrDestroyPlayer(); |
| 561 | |
| 562 | this._onSettingsUpdated(); |
| 563 | } |
| 564 | |
| 565 | private _updateRenderer() { |
| 566 | const renderer = this._renderer; |
nothing calls this directly
no test coverage detected