快速登录:  

Forum: VirtualDJ Plugins

话题: 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?
 

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

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

发表时间 Sun 24 Dec 23 @ 8:06 pm
AdionPRO InfinityCTOMember since 2006
Yes
 

发表时间 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?
 

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

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

发表时间 Thu 28 Dec 23 @ 3:13 pm