@waveform-playlist/playout 12.5.4 → 12.5.5

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
@@ -2218,7 +2218,13 @@ function createToneAdapter(options) {
2218
2218
  ticksToSeconds(tick) {
2219
2219
  return tick * 60 / (_bpm * _ppqn);
2220
2220
  },
2221
+ /** Integer tick (engine `PlayoutAdapter.secondsToTicks` contract): the
2222
+ * exact position rounded once here, as NativePlayoutAdapter does. */
2221
2223
  secondsToTicks(seconds) {
2224
+ return Math.round(seconds * _bpm * _ppqn / 60);
2225
+ },
2226
+ /** Fractional tick position (engine `PlayoutAdapter.secondsToTicksExact`). */
2227
+ secondsToTicksExact(seconds) {
2222
2228
  return seconds * _bpm * _ppqn / 60;
2223
2229
  },
2224
2230
  // --- Cross-context worklet support ---