For my project I need to synchronise visual effects with particular samples during playback.
So lets say I want to make a program ‘sync.exe’ so that when I run the command ‘sync.exe tune.wav 36044’, it should play the audio file and when sample #36044 is output from the sound card, a big red box gets put on the screen
So before delving too deeply into the framework I was hoping that some experienced JUCE people might shed some light on to what kind of sync error I would likely experience. Could I achieve a solution where the user would not perceive a delay between hearing sample #36044 and seeing the box appear on the screen?
Lets say [box_appear_time]-[sample-time] < [plus_or_minus_10ms]
Assuming a pretty low-end system - windows xp - direct sound - cheapo builtin sound card.
I have seen various posts regarding output latencies and problems with direct sound, so would love to know how possible this would be, or whether another library would be better - PortAudio/RTAudio/etc
thanks for any pointers