I receive a 'live' PCM stream (16bit, 8K, mono) from a device driver (it arrives in 512-2048 byte 'chunks'). I'd like to use JUCE to provide (minmal) buffering and playback (with mute/unmute capabilities).
Given the large number of Audio interfaces in JUCE, I'm not sure exactly what approach to take.
Though after looking through the Demo code and a few searches on this forum, I think I should create a new AudioSouce implementation and have its GetNextAudioBlock method read samples from the incoming feed. Possibly using a BufferingAudioSource on 'top' of this newly created AudioSource to buffer 1.5-3s of audio as a means to smooth out possible CPU/networking hiccups? The BufferingAudioSource would, then, be given to the transport for playback.
Do I even need to create my own, newly derived class as I have proposed, or is there a native JUCE class that could be fed the 'chunks' as they arrive?
Thanks in advance for your suggestions...