MP3 playback

Dec 8, 2009 at 4:21pm

MP3 playback

Hi all,

I am working on a patch that will allow a user to store sound file names and loop points in a cellblock and then recall these later on if they chose. I have currently been using ‘replace’ to load up the sound files into a buffer~ but my employer has asked if it would be possible to play MP3s as well. As far as I can make out you need to use the ‘import’ message to load MP3s which is fine but when I do this ‘info~’ does not update me with the length of the sound file I have loaded. I need to know the length (ms) of each sound file as to avoid cutting off samples short or having any ‘empty’ sound at the end of the buffer~. I have read that a negative value put as a buffer~ size automatically resizes the buffer~ to fit the length of the audio file but this does not seem to work for me.

Has anyone worked with MP3s in max before and offer me any suggestions of how I might go about solving my problem?



Dec 8, 2009 at 8:36pm

not sure if this will help at all, but usually the message “replace” resizes the buffer to the new file’s size.

Dec 8, 2009 at 9:22pm

Buffer~ doesn’t normally work with MP3s, this is why ‘replace’ will not work. In order to use an MP3 you need QuickTime installed and to use the ‘import’ message but this throws up the problems I mentioned above. The buffer~ reference sheds some light on this but it is not conclusive.

Thanks for getting back to me though.

Jan 28, 2012 at 9:58pm

I’m having the same problem Danny!

Could you finally find a solution for getting info about mo3 files?



You must be logged in to reply to this topic.