Channel Callback JavaScript


(Jaycliff Arcilla) #1

How do you add a callback function to a channel in JavaScript? I tried following the doc example here https://www.fmod.com/docs/api/content/generated/FMOD_Channel_SetCallback.html
but the callback doesn’t fire :frowning:

channel.setCallback(function () {
console.log(‘triggered!’);
});