I haven’t used Juce much yet, but thought this would be a good place to ask about an audio programming project.
I wanted to tie in my interest in audio programming to a project at school and could use some advice in case any of my underlying assumptions are wrong, and how I could make more progress.
I’m trying to demonstrate thread synchronization issues in audio by demonstrating different implementations of a ring buffer in use in a producer-consumer situation.
My plan is to do this by demonstating the following things:
stalling the audio callback, by locking a ringbuffer to load audio, and then show the problem being solved with by using a lock-free implementation (probably portaudio’s).
I have most of the moving parts, using portaudio to play audio, and can play a preloaded wav file and have both my “naive” ringbuffer and portaudio’s ready to use, but I am a bit confused on what the right test situation would look like.
Mainly I am unsure if I have a correct plan to show the problem case in action.
I’d really appreciate if anyone could offer some general advice. I’ve been doing synth programming but not much with audio files, so I’m sure I could use a second oppinion about if my plan is feasable and how to tackle it.
Thanks very much!