Any way to make GE list OGG files and play them?

Non-platform specific questions.

Any way to make GE list OGG files and play them?

Postby CrimsonTheDarkBat » Mon Mar 01, 2010 9:39 pm

Hi, is there a way to make Game Editor list whatever OGG files are in a games directory and then be able to play them?
Sonic Velocity Development Thread --> http://game-editor.com/forum/viewtopic.php?f=4&t=11461

Completed Games:
Sonic: War of the Emeralds
Sonic: Empire of Nightmares
Sonic.EXE - The Game
Alice: Crimson Omen
Epsilon 27
User avatar
CrimsonTheDarkBat
 
Posts: 223
Joined: Fri Mar 21, 2008 10:54 am
Score: 20 Give a positive score

Re: Any way to make GE list OGG files and play them?

Postby CrimsonTheDarkBat » Tue Mar 02, 2010 4:22 pm

Guys seriously, I need help with this.
Sonic Velocity Development Thread --> http://game-editor.com/forum/viewtopic.php?f=4&t=11461

Completed Games:
Sonic: War of the Emeralds
Sonic: Empire of Nightmares
Sonic.EXE - The Game
Alice: Crimson Omen
Epsilon 27
User avatar
CrimsonTheDarkBat
 
Posts: 223
Joined: Fri Mar 21, 2008 10:54 am
Score: 20 Give a positive score

Re: Any way to make GE list OGG files and play them?

Postby Bee-Ant » Tue Mar 02, 2010 5:26 pm

Technically, you can load the ogg files using fopen(); but you must make your own function to play them. Just open it doesnt mean play it.
For the list, you can make some sort of string array and save it as txt file or something.
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Any way to make GE list OGG files and play them?

Postby CrimsonTheDarkBat » Tue Mar 02, 2010 6:17 pm

Thanks :)
But, could you post a demo for me? I'm usless with fopen, fread etc.
Sonic Velocity Development Thread --> http://game-editor.com/forum/viewtopic.php?f=4&t=11461

Completed Games:
Sonic: War of the Emeralds
Sonic: Empire of Nightmares
Sonic.EXE - The Game
Alice: Crimson Omen
Epsilon 27
User avatar
CrimsonTheDarkBat
 
Posts: 223
Joined: Fri Mar 21, 2008 10:54 am
Score: 20 Give a positive score

Re: Any way to make GE list OGG files and play them?

Postby Bee-Ant » Thu Mar 04, 2010 1:56 am

Oh sorry, I just forgot to post it...
Here... :D
Attachments
PlayMusicOutside.zip
(788.25 KiB) Downloaded 44 times
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron