For larger audio files, Ampache often needs more memory to play them.
Unlike other php based apps, increasing the memory limit in php.ini will get overwritten.
The correct file for Ampache is /app/data/config/ampache.cfg.php: (example)
memory_limit = 512M