I'm trying to build an application that recieves certain network packets with information in it from the clock it's playing (i recieve BPM, on what beat it is and information about the position in the song). I wrote a listener for that.
I already got a MIDI clock sender (with a highrestimer) that sends 24 messages for each beat (input is only 4 messages per beat).
Now I want to generate a SMPTE audio signal form this information with a delay as low as possible. But I'm not sure what the best way to do this (I don't have much experience with audio programming).
What would be the best way to do the SMPTE sender?
- using pre recorded SMPTE and set the position of this with the playhead? (doesn't look like an "elegant" solution
- writing the audiosamplebuffer with the processblock and variables for what position the input signal is
- using processBlock(AudiSampleBuffer , MidiBuffer) where I first write things to the midi buffer and convert this in the processBlock to audio signals?
It has to be as realtime as possible so I gues setting the samplesize as high as possible and buffer as small as possible (without things being instable).
Thanks! Hope you guys understand my explanation :)