sigproc: factor out the audio file loading logic