Skip to content

Commit 54db4c0

Browse files
missing from the playprops commit - playprops now include playback rate and playduration
1 parent 19c2ab5 commit 54db4c0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Sample.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ class Sample extends AbstractAudioWrapper {
162162
}
163163

164164
_play(playProps) {
165-
playProps = playProps || {loops: this.loops, playDuration: this.playDuration, offset: this.offset, delay: this.delay};
165+
// TODO: Fix this so that partial play props can be given.
166+
playProps = playProps || {loops: this.loops, playDuration: this.playDuration, offset: this.offset, delay: this.delay,
167+
playbackRate: this.playbackRate, detune: this.detune};
166168
let pb = new Playback(this.audioBuffer, playProps);
167169

168170
this.playbacks.push(pb);

0 commit comments

Comments
 (0)