Skip to content
Snippets Groups Projects
Commit 6fa6b027 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Fix mock audio buffer

parent 2e30f1d4
Branches
Tags
No related merge requests found
......@@ -3,7 +3,8 @@ export default class MockAudioBufferPlayer {
this.samples = samples;
this.sampleRate = sampleRate;
this.buffer = {
getChannelData: jest.fn(() => samples)
getChannelData: jest.fn(() => samples),
sampleRate: sampleRate
};
this.play = jest.fn((trimStart, trimEnd, onUpdate) => {
this.onUpdate = onUpdate;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment