@coderline/alphatab 1.3.0-alpha.933 → 1.3.0-alpha.942

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -84,11 +84,6 @@ declare class CoreSettings {
84
84
  * @target web
85
85
  */
86
86
  constructor();
87
- /**
88
- * @target web
89
- */
90
- static ensureFullUrl(relativeUrl: string | null): string;
91
- private static appendScriptName;
92
87
  }
93
88
 
94
89
  /**
@@ -5537,6 +5532,10 @@ declare class Environment {
5537
5532
  * @target web
5538
5533
  */
5539
5534
  static scriptFile: string | null;
5535
+ /**
5536
+ * @target web
5537
+ */
5538
+ static fontDirectory: string | null;
5540
5539
  /**
5541
5540
  * @target web
5542
5541
  */
@@ -5551,8 +5550,14 @@ declare class Environment {
5551
5550
  static get isRunningInAudioWorklet(): boolean;
5552
5551
  /**
5553
5552
  * @target web
5553
+ * @internal
5554
5554
  */
5555
- static createAlphaTabWorker(scriptFile: string | null): Worker;
5555
+ static createWebWorker: (settings: Settings) => Worker;
5556
+ /**
5557
+ * @target web
5558
+ * @internal
5559
+ */
5560
+ static createAudioWorklet: (context: AudioContext, settings: Settings) => Promise<void>;
5556
5561
  /**
5557
5562
  * @target web
5558
5563
  * @partial
@@ -5562,6 +5567,15 @@ declare class Environment {
5562
5567
  * @target web
5563
5568
  */
5564
5569
  private static detectScriptFile;
5570
+ /**
5571
+ * @target web
5572
+ */
5573
+ static ensureFullUrl(relativeUrl: string | null): string;
5574
+ private static appendScriptName;
5575
+ /**
5576
+ * @target web
5577
+ */
5578
+ private static detectFontDirectory;
5565
5579
  /**
5566
5580
  * @target web
5567
5581
  */
@@ -5600,9 +5614,16 @@ declare class Environment {
5600
5614
  private static createDefaultLayoutEngines;
5601
5615
  /**
5602
5616
  * @target web
5603
- * @partial
5604
5617
  */
5605
- static platformInit(): void;
5618
+ static initializeMain(createWebWorker: (settings: Settings) => Worker, createAudioWorklet: (context: AudioContext, settings: Settings) => Promise<void>): void;
5619
+ /**
5620
+ * @target web
5621
+ */
5622
+ static initializeWorker(): void;
5623
+ /**
5624
+ * @target web
5625
+ */
5626
+ static initializeAudioWorklet(): void;
5606
5627
  /**
5607
5628
  * @target web
5608
5629
  */
@@ -7380,7 +7401,7 @@ declare class AlphaSynthWebWorkerApi implements IAlphaSynth {
7380
7401
  set isLooping(value: boolean);
7381
7402
  get playbackRange(): PlaybackRange | null;
7382
7403
  set playbackRange(value: PlaybackRange | null);
7383
- constructor(player: ISynthOutput, alphaSynthScriptFile: string, logLevel: LogLevel, bufferTimeInMilliseconds: number);
7404
+ constructor(player: ISynthOutput, settings: Settings);
7384
7405
  destroy(): void;
7385
7406
  play(): boolean;
7386
7407
  pause(): void;
@@ -7473,6 +7494,8 @@ declare class AlphaSynthScriptProcessorOutput extends AlphaSynthWebAudioOutputBa
7473
7494
  declare class AlphaSynthAudioWorkletOutput extends AlphaSynthWebAudioOutputBase {
7474
7495
  private _worklet;
7475
7496
  private _bufferTimeInMilliseconds;
7497
+ private readonly _settings;
7498
+ constructor(settings: Settings);
7476
7499
  open(bufferTimeInMilliseconds: number): void;
7477
7500
  play(): void;
7478
7501
  private handleMessage;
@@ -7513,4 +7536,4 @@ declare namespace index_d {
7513
7536
  export { index_d_ActiveBeatsChangedEventArgs as ActiveBeatsChangedEventArgs, index_d_AlphaSynth as AlphaSynth, index_d_AlphaSynthAudioWorkletOutput as AlphaSynthAudioWorkletOutput, index_d_AlphaSynthScriptProcessorOutput as AlphaSynthScriptProcessorOutput, index_d_AlphaSynthWebAudioOutputBase as AlphaSynthWebAudioOutputBase, index_d_AlphaSynthWebWorkerApi as AlphaSynthWebWorkerApi, index_d_CircularSampleBuffer as CircularSampleBuffer, type index_d_IAlphaSynth as IAlphaSynth, type index_d_ISynthOutput as ISynthOutput, index_d_MidiEventsPlayedEventArgs as MidiEventsPlayedEventArgs, index_d_PlaybackRange as PlaybackRange, index_d_PlaybackRangeChangedEventArgs as PlaybackRangeChangedEventArgs, index_d_PlayerState as PlayerState, index_d_PlayerStateChangedEventArgs as PlayerStateChangedEventArgs, index_d_PositionChangedEventArgs as PositionChangedEventArgs };
7514
7537
  }
7515
7538
 
7516
- export { AlphaTabApi, AlphaTabError, AlphaTabErrorType, CoreSettings, DisplaySettings, Environment, FileLoadError, FingeringMode, FormatError, ImporterSettings, LayoutMode, LogLevel, Logger, NotationMode, NotationSettings, PlayerSettings, ProgressEventArgs, RenderingResources, ResizeEventArgs, ScrollMode, Settings, StaveProfile, SystemsLayoutMode, TabRhythmMode, VibratoPlaybackSettings, index_d$4 as exporter, index_d$5 as importer, VersionInfo as meta, index_d$3 as midi, index_d$6 as model, index_d$1 as platform, index_d$2 as rendering, index_d as synth };
7539
+ export { AlphaTabApi, AlphaTabError, AlphaTabErrorType, CoreSettings, DisplaySettings, Environment, FileLoadError, FingeringMode, FormatError, ImporterSettings, LayoutMode, LogLevel, Logger, NotationMode, NotationSettings, PlayerSettings, ProgressEventArgs, RenderingResources, ResizeEventArgs, ScrollMode, Settings, StaveProfile, SystemsLayoutMode, TabRhythmMode, VibratoPlaybackSettings, WebPlatform, index_d$4 as exporter, index_d$5 as importer, VersionInfo as meta, index_d$3 as midi, index_d$6 as model, index_d$1 as platform, index_d$2 as rendering, index_d as synth };