I\'m trying to use mmap to read and play audio files on iOS. It works fine for files up to about 400MB. But when I try a 500MB file, I get a ENOMEM error.
char *
After further investigation and reading this excellent blog post by John Carmack, here are my conclusions:
Therefore, to reliably mmap 700MB worth of file data it is necessary to break it into smaller chunks.