I created something that opens up music files and plays them with the Direct Show object. But when some songs play the application freezes because it cant play the type of file. Is there a way so i can tell it not to open up certain types of files?
Printable View
I created something that opens up music files and plays them with the Direct Show object. But when some songs play the application freezes because it cant play the type of file. Is there a way so i can tell it not to open up certain types of files?
Make a string parser and do the following
Always
Reset Delimeters
Add Delimeter "."
Set string to "*file path*"
Set any value that isn't occupied to 0
If (listGetAt$( "String Parser", listCount( "String Parser" )) = mp3
Set the above value to 1
If (listGetAt$( "String Parser", listCount( "String Parser" )) = wav
Set the above value to 1
etc
If value = 1
then approve the file format