mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-27 20:13:07 +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/";
|
|
}
|