mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-30 13:33:10 +00:00
10 lines
249 B
TypeScript
10 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/";
|
||
|
}
|