Posted: 8th Sep 2011 21:59
Can someone tell me what I am doing wrong here


+ Code Snippet
rem
rem AGK Application
rem

rem A Wizard Did It!

rem Load music file
loadmusic(1,"NightCrawl.ogg")
SetMusicFileVolume( 1, 100 )
playmusic(1,0)


do
 Print("Rabbit__Hutch")
 Sync()
loop


It runs but no sound

Dennis W
Posted: 8th Sep 2011 22:00
If it's on windows, replace the ogg file with an mp3?

Can you play ogg's in media player?
Posted: 8th Sep 2011 22:04
Ok I got ya Thanks

Dennis W
Posted: 8th Sep 2011 22:20
Nice music you using there.
Posted: 8th Sep 2011 23:06
@Nickydude yes it is you do good work.

So I converted it to mp3 and I get the follwing error
any thoughts

Dennis W
Posted: 8th Sep 2011 23:19
Double check that the file name exactly matches.

And does it play outside of AppGameKit, like in media player or winamp, etc.?
Posted: 8th Sep 2011 23:26
Yes it matches and I just tride it again and it plays in windows media player
Posted: 8th Sep 2011 23:34
Hmm, is the .ogg file still in your media folder? If so, try moving it out of there and see if that fixes it.
Posted: 8th Sep 2011 23:42
I took that out and then I closed down AppGameKit and back up again still the same thing. I even tried changing the error catch statment
+ Code Snippet
rem
rem AGK Application
rem

rem A Wizard Did It!
SetErrorMode ( 0 )

rem Load music file
loadmusic(1,"NightCrawl.mp3")
SetMusicFileVolume( 1, 100 )
playmusic(1,0)


do
 Print("Rabbit__Hutch")
 Sync()
loop

tried to tell it toforget the error it runs but no sound


Dennis W
Posted: 8th Sep 2011 23:56
Ok I got it to work not sure what it was tho I took evrything out of the media folder the splash image and mp3 file created a new one. Put them back in and it worked. must be magic


Thanks for your HELP

Dennis W
Posted: 9th Sep 2011 0:08
Glad you got it working! Good luck on the rest of it.
Posted: 9th Sep 2011 16:59
Ok here is the follow up. If you do something stupid pass it on so nobody else dose it. I thought that you can just drop it in the root and it would pick it up. Then I tried to put it in media/name but all you have to do is drop what ever it is in the folder image or sound file. So there we have it. I thought sure I would get through the year without a mistake. Oh well

Dennis W