@waveform-playlist/browser 10.1.2 → 10.2.0

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.d.mts CHANGED
@@ -254,6 +254,9 @@ interface MediaElementPlaylistProviderProps {
254
254
  timescale?: boolean;
255
255
  /** Initial playback rate (0.5 to 2.0) */
256
256
  playbackRate?: number;
257
+ /** Whether to preserve pitch when changing playback rate (default: true).
258
+ * Set to false when using an external pitch processor like SoundTouch. */
259
+ preservesPitch?: boolean;
257
260
  /** Enable automatic scroll to keep playhead centered */
258
261
  automaticScroll?: boolean;
259
262
  /** Theme configuration */
package/dist/index.d.ts CHANGED
@@ -254,6 +254,9 @@ interface MediaElementPlaylistProviderProps {
254
254
  timescale?: boolean;
255
255
  /** Initial playback rate (0.5 to 2.0) */
256
256
  playbackRate?: number;
257
+ /** Whether to preserve pitch when changing playback rate (default: true).
258
+ * Set to false when using an external pitch processor like SoundTouch. */
259
+ preservesPitch?: boolean;
257
260
  /** Enable automatic scroll to keep playhead centered */
258
261
  automaticScroll?: boolean;
259
262
  /** Theme configuration */
package/dist/index.js CHANGED
@@ -4718,6 +4718,7 @@ var MediaElementPlaylistProvider = ({
4718
4718
  waveHeight = 100,
4719
4719
  timescale = false,
4720
4720
  playbackRate: initialPlaybackRate = 1,
4721
+ preservesPitch = true,
4721
4722
  automaticScroll = false,
4722
4723
  theme: userTheme,
4723
4724
  controls = { show: false, width: 0 },
@@ -4787,7 +4788,8 @@ var MediaElementPlaylistProvider = ({
4787
4788
  (0, import_react24.useEffect)(() => {
4788
4789
  var _a2, _b;
4789
4790
  const playout = new import_media_element_playout.MediaElementPlayout({
4790
- playbackRate: initialPlaybackRate
4791
+ playbackRate: initialPlaybackRate,
4792
+ preservesPitch
4791
4793
  });
4792
4794
  playout.addTrack({
4793
4795
  source: track.source,
@@ -4825,6 +4827,7 @@ var MediaElementPlaylistProvider = ({
4825
4827
  track.fadeOut,
4826
4828
  audioContext,
4827
4829
  initialPlaybackRate,
4830
+ preservesPitch,
4828
4831
  onReady,
4829
4832
  stopAnimationFrameLoop,
4830
4833
  setActiveAnnotationId