我正在使用 pixi-sound.js 并希望能够跳到音频文件中的特定点。在通过更新 currentTime 使用 HTML5 音频之前,我已经实现了这一点,但我不确定在哪里可以使用 pixi-sound 访问它。对象中至少有两个 currentTime 值以及“进度”,但更改这些值不会导致跳过。
var sound = PIXI.sound._sounds['track01'];
var currenttime = sound.media.context.audioContext.currentTime;
我原以为这将是一种常见的用法,但在文档中找不到任何对它的引用。任何想法都非常感谢。