I’ve been trying to send audio selected from the host to our server. For that my idea is to first convert buffer to file and then load it using flac_file.loadFileAsData() and send this over network.
juce::MemoryOutputStream memstream;
juce::MemoryBlock memblock;
flac_file.loadFileAsData(memblock);
juce::String flac = memstream.toString();
socket.send(flac);
socket.close();
flac_file.close();
So here I am loading flac data to a memory block , now how do I convert it to memory Stream?
Or is there a more efficient/easier way to do this?