I began to post about how I am struggling to use the AudioFormat classes to get streaming audio working over a network. This is a case where there are only “chunks” of audio available at a time and the writer/reader never has access to the full set of samples. Then I ran across this quote from Jules:
None of the audio format classes are designed for use on open-ended streams (because obviously things like wav, aiff couldn’t possibly do that). So you’d probably need to roll your own solution for this.
Compressing/Decompressing an Audio Stream
I happen to have my own solution directly using the FLAC api (and opus)…but was trying to port that into the JUCE bubble so I don’t have to deal with those libraries. Looks like that is not possible, so I’m modifying this post to just be a friendly request to update the AudioFormat classes to allow open ended streams for the formats that allow it. I’m surprised that JUCE has so much audio functionality, and a fairly complete set of networking functionality, as well as audio codec functionality…but you can’t stream encoded audio across a network, which is a fairly common use case.