#19285 - Spockmeat - Fri Apr 16, 2004 4:45 am
I dont' know why, but I'm having trouble getting krawall to play my xm files properly. I haven't even tried sound effects yet. I searched through all the topics relating to krawall in this forum (only like 38 hits) but none of them are useful to me.
here's a stripped down version of my project:
http://spockmeat.ath.cx/musictest.zip
just open the project in visual ham and it should all compile and run. You can hear that something is really screwed up... the music sorta plays but there's all sorts of skips, static, etc. I don't know what I have scred up but I've wasted a couple of days trying to get this to work. Any suggestions would be much appreciated.
#19290 - Sweex - Fri Apr 16, 2004 8:50 am
You do know that you have to pay for Krawall to get a version that plays XMs, right?
_________________
If everything fails, read the manual: If even that fails, post on forum!
#19320 - Spockmeat - Sat Apr 17, 2004 5:40 am
ya, sorry I meant s3m files. Just replace every instance I said xm with s3m and that's my problem :)
#19329 - dagamer34 - Sat Apr 17, 2004 3:28 pm
Try opening the s3m file in Modplug Tracker and see if it plays there, then save it again. Maybe that will work, if not, then check your code again too.
_________________
Little kids and Playstation 2's don't mix. :(
#19333 - Spockmeat - Sat Apr 17, 2004 4:20 pm
oh ya, the files are just fine. I actually can seem to get it to play when using the ham lib. http://spockmeat.ath.cx/musictest2.zip
see, I actually can get krawall to play when using ham there, I just can't figure out how to do it without using ham. I've checked through all my code several times, changing things and trying to figure it out. I just don't know why it won't play properly with my code :(
#19343 - Miked0801 - Sat Apr 17, 2004 7:06 pm
Without looking at the code, it sounds like an interrupt issue. Double check where you are calling the Krawall worker function(s).
#19347 - Spockmeat - Sat Apr 17, 2004 7:23 pm
ya that's kinda what I was thinking.
I just played around with turning on and off a few things and it seems like having
// enable hblank status (bit 4)
REG_DISPSTAT |= 0x10;
was causing the problems. After commenting out that line it seems to be working properly. I am still a bit confused as to why that would break it, but I'm just happy that it works :)