I’m trying to create an interface to play and browse my music. Thing is, most of it is in .m4a, and neither the Sound library nor the Minim library seem to support that format.
All my music is either in .m4a or in .mp3, and all I need to be able to do is play, pause, change playback speed and/or skip forward/backward, although I wouldn’t loathe having more functions to play with. Is there any library you can think of that would suit my needs?
? also
Beads
failed
I can now confirm through testing that Beads will indeed work with .mp3 but not with .m4a files.
As far as I recall that was the case with minim too, as with the original Sound library, that couldn’t play .mp3, and I’m out of sound libraries I know here.
I just did a search on m4a audio format and I found this article. What was surprising is that it suggests some media players will only play it if you rename the file with mp3 extension. You might try this on a copy of one of your music files.
First of all, many, many thanks!
Second of all, it actually says files work when renamed to mp4. Though both solutions seem to work fine: the file will still play just fine.
Except on beads, where it won’t, throwing the same error as when I tried to play it in its .m4a guise.
Well, does it work with the Sound library?
Nope.
Well, this is mildly frustrating. We need to fix that, don’t we.
So now the Sound library won’t even decode the .mp3 file I’d tested it with!
It won’t decode ANY file!
Now that’s more like the frustration we want to see!
At this point I should mention beads too decided it didn’t want to play some .mp3 files. Some it did, some it didn’t. I couldn’t spot any criteria.