Tone.js/test/helper/ToneAudioBuffer.ts
2019-05-25 14:31:02 -04:00

9 lines
249 B
TypeScript

import { ToneAudioBuffer } from "Tone/core/context/ToneAudioBuffer";
// point to the relative path of the audio files
// @ts-ignore
if (window.__karma__) {
ToneAudioBuffer.baseUrl = "/base/test/";
} else {
ToneAudioBuffer.baseUrl = "../test/";
}