Hi everybody,
in the docs for AudioFormat::createMemoryMappedReader() I read, that only a few formats support that, i.e. Wav and Aiff. I want to use it with ogg files.
I looked into the constructor of MemoryMappedAudioFormatReader and found, that I can supply a generic AudioFormat. So will this work with any AudioFormat and does this make sense with a compressed format?
Second question: how do I use the MemoryMappedAudioFormatReader::touchSample() method? It would make no sense to iterate over the whole block I guess. So how is this usually done? touch the first and the last sample of a block I’m about to read?
Thanks for the insights…
EDIT: just realise, that the MemoryMappedAudioFormatReader is pure virtual. For some reasons the subclasses are not shown in the docs, otherwise I would have noticed, that there is an actual class implemented for WAV and AIFF. So the question is still, is this feasible for OggVorbisAudioFormat as well?