Accesso rapido:  

Forum: VirtualDJ Plugins

Topic: Accessing audio buffer from video effect
Is there a way to access the audio buffer from a video effect plugin, otherwise what would be the method for creating an audio reactive video effect?
 

Inviato Sun 24 Dec 23 @ 3:22 pm
AdionPRO InfinityCTOMember since 2006
Yes, a IVdjPluginVideoFx8 plugin also has OnAudioSamples that you can implement.
 

Inviato Sun 24 Dec 23 @ 5:17 pm
Great! Does this depend on what deck it is loaded on?
 

Inviato Sun 24 Dec 23 @ 8:06 pm
AdionPRO InfinityCTOMember since 2006
Yes
 

Inviato Mon 25 Dec 23 @ 3:26 am
I see it as OnAudioSamples, what does the construction of float* buffer look like? Is it a 1D array of floats with a midpoint at where the channels split or is it separate buffers per channel?
 

Inviato Tue 26 Dec 23 @ 8:48 pm
AdionPRO InfinityCTOMember since 2006
Interleaved stereo (so one sample left, one sample right etc...)
 

Inviato Thu 28 Dec 23 @ 2:56 pm
Got it, makes sense! Thanks for the help.
 

Inviato Thu 28 Dec 23 @ 3:13 pm