There’s an AudioFileOpenURL function which opens an file. With AudioFileReadPackets that file is accessed to read packets. But one thing that stucks in my brain is: Does AudioFileOpenURL actually load the whole monster into memory? Or is that a lightweight operation?
So is it possible to read data from a file, only a specific portion, without having the whole terabytes of stuff in memory?
No, it just gets you a file pointer.
Yep, fairly lightweight. Just requires a filesystem lookup.
Yes, you can use
fseekto go a certain point in the file, thenfreadto read it into a buffer (orAudioFileReadBytes).