Is there a known issue with the M3U playlist format and short names?
Basically I created an M3U file that contains the name of songs to play.
If I name the songs odd.mp3, intro.mp3, thing.mp3, etc.mp3
basically anything shorter than 6 characters whenever I try to load up the M3U file I get an error of “(23) Unsupported file or Audio Format”
However If I name the files anything 6 characters or longer, like things.mp3 instead of thing.mp3 the file will read just fine…
I read through the docs on CreateSound, example on playlists, and googled the M3U format and dont see any mention of file names having to be longer than 5 characters in order for them to load.
I apologise to brett in advance if this is just me missing something silly again :|.
Edit: An M3U file with less than 5 character names on the files loads into windows media player just fine, however FMOD still errors.
Guess I will just rename the intro.mp3 to introduction.mp3.
Edit: Upon further examination, this only happens if only one item is in the playlist and its name is shorter than 5 characters (this happened because the M3U file was auto generated at run time and the only item in the folder was intro.mp3)
- DarkGod asked 13 years ago
Well, I am not sure how to attach files however it only happens if there is only one thing in the list. so the whole M3U file would look something like
And thats everything in the file. However I have noticed it does not happen if there are more than one file in the list, such as if you had Intro.mp3 and then Int.mp3 it would not happen, so I would imagine being that the Playlist tutorial (where I incidently took most of the code from) would not have this issue simply because it has several files in the list.
Edit: Just tested
if you remove from the /media/playlist.m3u
all of the lines other than wave.mp3 the tutorial reproduces the error.
Edit: Also reproduces with the .wav file
Also if you leave even a comment in the file it does not occur, it seems you must make the file small enough (size < 9bytes)
As a workaround now when I output my file I am first inserting a comment in the first line, thusly bumping the file size over 9 bytes.
- DarkGod answered 13 years ago
I haven’t been able to reproduce this error with any of the playlists I’ve created. Also you’ll notice that the playlist example uses an m3u playlist that has filenames less than 5 characters.
Would you be able to post one of your m3u playlists that fails so I can try it out?
Please login first to submit.