angry-pixel 2.3.1 → 2.3.2

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.
package/lib/index.d.ts CHANGED
@@ -2442,6 +2442,12 @@ interface AudioPlayerOptions {
2442
2442
  fixedToTimeScale: boolean;
2443
2443
  /** TRUE If the audio source should loop. */
2444
2444
  loop: boolean;
2445
+ /** Time mark (seconds) where looping starts. Only has effect when `loop` is TRUE and `loopEnd` is greater than zero. */
2446
+ loopStart: number;
2447
+ /** Time mark (seconds) where looping ends. When `loop` is TRUE and this is greater than zero, the audio loops between `loopStart` and `loopEnd`. */
2448
+ loopEnd: number;
2449
+ /** Time mark (seconds) where playback starts from when playing from a stopped state. Default is 0. */
2450
+ startAt: number;
2445
2451
  /** The volume of the audio source. */
2446
2452
  volume: number;
2447
2453
  }
@@ -2471,10 +2477,18 @@ declare class AudioPlayer {
2471
2477
  fixedToTimeScale: boolean;
2472
2478
  /** TRUE If the audio source should loop. */
2473
2479
  loop: boolean;
2480
+ /** Time mark (seconds) where looping starts. Only has effect when `loop` is TRUE and `loopEnd` is greater than zero. */
2481
+ loopStart: number;
2482
+ /** Time mark (seconds) where looping ends. When `loop` is TRUE and this is greater than zero, the audio loops between `loopStart` and `loopEnd`. */
2483
+ loopEnd: number;
2484
+ /** Time mark (seconds) where playback starts from when playing from a stopped state. Default is 0. */
2485
+ startAt: number;
2474
2486
  /** READONLY, The current state of the audio source. */
2475
2487
  state: "stopped" | "playing" | "paused";
2476
2488
  /** The volume of the audio source. */
2477
2489
  volume: number;
2490
+ /** READONLY, The current playback time mark of the audio source, expressed in seconds. */
2491
+ get currentTime(): number;
2478
2492
  /** READONLY, TRUE If the audio source is playing. */
2479
2493
  get playing(): boolean;
2480
2494
  /** READONLY, TRUE If the audio source is paused. */
@@ -2491,6 +2505,8 @@ declare class AudioPlayer {
2491
2505
  _startedAt: number;
2492
2506
  /** @internal Offset (seconds) within the buffer at which the next play should resume from (used on pause) */
2493
2507
  _pauseOffset: number;
2508
+ /** @internal Current playback time mark (seconds), updated each frame by the AudioPlayerSystem */
2509
+ _currentTime: number;
2494
2510
  /** @internal */
2495
2511
  _playAfterUserInput: boolean;
2496
2512
  /** @internal */