@waveform-playlist/engine 14.0.0-next.8 → 14.0.0-next.9

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/dist/index.mjs CHANGED
@@ -2177,11 +2177,11 @@ var AdapterSync = class {
2177
2177
  }
2178
2178
  };
2179
2179
 
2180
- // src/PlaylistEngine.ts
2180
+ // src/EditorEngine.ts
2181
2181
  var DEFAULT_SAMPLE_RATE = 48e3;
2182
2182
  var DEFAULT_SAMPLES_PER_PIXEL = 1024;
2183
2183
  var DEFAULT_ZOOM_LEVELS = [256, 512, 1024, 2048, 4096, 8192];
2184
- var PlaylistEngine = class {
2184
+ var EditorEngine = class {
2185
2185
  constructor(options = {}) {
2186
2186
  this._detachDecodeContext = null;
2187
2187
  this._currentTime = 0;
@@ -2208,13 +2208,13 @@ var PlaylistEngine = class {
2208
2208
  });
2209
2209
  });
2210
2210
  if (this._zoomLevels.length === 0) {
2211
- throw new Error("PlaylistEngine: zoomLevels must not be empty");
2211
+ throw new Error("EditorEngine: zoomLevels must not be empty");
2212
2212
  }
2213
2213
  const initialSpp = options.samplesPerPixel ?? DEFAULT_SAMPLES_PER_PIXEL;
2214
2214
  const zoomIndex = this._zoomLevels.indexOf(initialSpp);
2215
2215
  if (zoomIndex === -1) {
2216
2216
  throw new Error(
2217
- `PlaylistEngine: samplesPerPixel ${initialSpp} is not in zoomLevels [${this._zoomLevels.join(", ")}]. Either pass a samplesPerPixel value that exists in zoomLevels, or include ${initialSpp} in your zoomLevels array.`
2217
+ `EditorEngine: samplesPerPixel ${initialSpp} is not in zoomLevels [${this._zoomLevels.join(", ")}]. Either pass a samplesPerPixel value that exists in zoomLevels, or include ${initialSpp} in your zoomLevels array.`
2218
2218
  );
2219
2219
  }
2220
2220
  this._zoomIndex = zoomIndex;
@@ -2230,7 +2230,7 @@ var PlaylistEngine = class {
2230
2230
  this._arrangement = asArrangementImpl(options.arrangement);
2231
2231
  if (options.undoLimit !== void 0) {
2232
2232
  console.warn(
2233
- "[waveform-playlist] PlaylistEngine: undoLimit is ignored when an arrangement is passed. Set it on createArrangement({ undoLimit })."
2233
+ "[waveform-playlist] EditorEngine: undoLimit is ignored when an arrangement is passed. Set it on createArrangement({ undoLimit })."
2234
2234
  );
2235
2235
  }
2236
2236
  } else {
@@ -2779,11 +2779,11 @@ var PlaylistEngine = class {
2779
2779
  function asArrangementImpl(arrangement) {
2780
2780
  if (isArrangement(arrangement)) return arrangement;
2781
2781
  throw new Error(
2782
- "[waveform-playlist] PlaylistEngine: the `arrangement` option must be an arrangement made by createArrangement()."
2782
+ "[waveform-playlist] EditorEngine: the `arrangement` option must be an arrangement made by createArrangement()."
2783
2783
  );
2784
2784
  }
2785
2785
  export {
2786
- PlaylistEngine,
2786
+ EditorEngine,
2787
2787
  attachDecodeContext,
2788
2788
  calculateDuration,
2789
2789
  calculateSplitPoint,