diff --git a/src/api/AudioPlayer.ts b/src/api/AudioPlayer.ts index a2ad4250d..53d6c0614 100644 --- a/src/api/AudioPlayer.ts +++ b/src/api/AudioPlayer.ts @@ -235,7 +235,7 @@ export function identifyAudioType(audio: string): AudioType { /** * Adds a function to process an audio before it is played. * @param key A unique identifier for this audio processor. Plugin name is recommended. - * @param processor A function that takes an audio, volume (0-100), and type (AudioType), and returns the replacement audio and volume. + * @param processor A function that takes a data object with audio, volume (0-100), and type (AudioType) attributes, and modifies the audio and volume in place. */ export function addAudioProcessor(key: string, processor: AudioProcessor): void { audioProcessorFunctions[key] = processor; diff --git a/src/equicordplugins/cursorBuddy/index.tsx b/src/equicordplugins/cursorBuddy/index.tsx index a27f90293..0e76ff54b 100644 --- a/src/equicordplugins/cursorBuddy/index.tsx +++ b/src/equicordplugins/cursorBuddy/index.tsx @@ -117,7 +117,8 @@ function load() { .replace("./oneko.gif", ONEKO_IMAGE) .replace("nekoSpeed = 10;", `nekoSpeed = ${settings.store.speed};`) .replace(" > 100", ` > ${1000 / settings.store.fps}`) - ); + ) + .then(s => Function(s)()); break; } case "fathorse": {