what I also do is to send the file name to iemlib/soundfile_info, which
gives out the file size (for wav files). then I send that value as an
argument to -maxsize, and I don't have to worry about how big the sound
file is. (except for Mathieu's error, which I hadn't heard about before)
OK i've done as Mathieu suggested and used the '-maxsize' to increase the capacity of the array to 1e+009. I have no idea what this means but the patch works so i'm not too bothered for now. Thanks for all the replies gentlemen.