Waveform Data from EventInstance

(Nathaniel Stevens) #1

I’m struggling to find the best way to access the waveform data being played by a specific EventInstance. It seems like there’s an obvious callback I’m missing somewhere.

(Brett Paterson) #2

An eventinstance can access its low level channelgroup with EventInstance::getChannelGroup.

From there you can either use the metering functions in the low level API, or if you want to capture the wavedata , you have to add a custom DSP with a read callback, that lets you get access to the pcm, and add it with ChannelGroup::addDSP