Computer Science Canada Recursively Scan a Directory |
Author: | Prince Pwn [ Fri Apr 08, 2011 10:45 pm ] | ||
Post subject: | Recursively Scan a Directory | ||
I've been trying to get this to work for years and finally got it. I deleted tons of extra code just to get to the bare bones, but when I have time I'll develop it further to be a full blown, lightweight media player.
|
Author: | Prince Pwn [ Sat Apr 09, 2011 7:40 am ] |
Post subject: | RE:Recursively Scan a Directory |
I don't know why but sometimes the program wont play a song, and sometimes I get "Assert condition is false". Darn =| And sometimes it won't play a song. I've determines it's because it's over a certain filesize. Turing won't play music files bigger than like roughly 5MB but will play songs under. |
Author: | Tony [ Sat Apr 09, 2011 11:52 am ] | ||
Post subject: | RE:Recursively Scan a Directory | ||
I don't see the switch : string argument doing anything, so wouldn't
just scan everything twice? You wouldn't really notice it, as numOfMP3 will make random choices just from the first half, but if you check the size of songFullPath, it should be double of that. I didn't know about Turing's music file size limitations, but I wouldn't be entirely surprised if that's the case. |
Author: | Prince Pwn [ Sat Apr 09, 2011 4:56 pm ] |
Post subject: | RE:Recursively Scan a Directory |
Ah good catch on the switch. I left that in there from when I was trying another method of collecting the MP3's, but then I managed to do it using a dynamically sized array. I pretty much tested playing diff files with Music.PlayFileReturn, and I never get an error and Error.LastMsg is always empty, the only thing I've noticed is files larger than like 5MB do not play. I'll test this further. |
Author: | Prince Pwn [ Sat Apr 09, 2011 5:23 pm ] |
Post subject: | RE:Recursively Scan a Directory |
Ah I found the error by switching from Music.PlayFileReturn to Music.PlayFile. Error.LastMsg shows A problem occured in initializing MCI. Now does anyone know what that means? I'm Googling meanwhile but coming up with nothing good. Anyone know how Turing plays music, what Windows API it hooks into or anything? |