-
Ray Schamp authoredRay Schamp authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
audio-buffer-player.js 355 B
export default class MockAudioBufferPlayer {
constructor (samples, sampleRate) {
this.samples = samples;
this.sampleRate = sampleRate;
this.play = jest.fn((trimStart, trimEnd, onUpdate) => {
this.onUpdate = onUpdate;
});
this.stop = jest.fn();
MockAudioBufferPlayer.instance = this;
}
}