mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 08:38:00 +00:00
9 lines
249 B
TypeScript
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/";
|
|
}
|