Hello
I need to be able to hold audio channels in memory and to convert from the original format to some other formats.
In my POC I’m using MemoryBlock but its just a too low-level DTO to store this information.
I think it needs to be something like AudioSampleBuffer, with samples and channels, and be format-agnostic but though I went over the API again and again I can’t figure it out.
I can switch from AudioFormatReader to AudioSampleBuffer using AudioFormatReader::read() but how can I go the other way? how can I switch from
an AudioSampleBuffer to AudioFormatReader?