Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Advanced Music - Looping?

darmak

Member

I'm using the enhanced music playing script which uses Winamp.dll to play music files. My game uses solely SNES .SPC files, and the script plays them nicely. My only problem is that it doesn't loop at all. Ever. The script's instructions say you can edit it with Winamp itself and copy a config file to the DLL directory, but I can't find any config files from Winamp. Is there simply a way to put the loop argument in a text file and name it winamp-config.dll or something? Looping is crucial to my game - the battle music is rather short, and it simply goes silent when the music finishes. It's rather annoying. I have tried many times to get it to loop, and I did manage to find a config file for winamp.dll online, but the config file seems to be set up for some sort of game, and there is no repeat / loop option. I'd very much appreciate it if someone could either show me how to make / download a config file, or if someone knows how to modify the RGSS code to set the loop count or time. Thank you =)
 
The config file is in your user directory, named "winamp.ini". With Windows XP, the path would be something like:
C:\Documents and Settings\Username\Application Data\Winamp
A'course, if you've installed Windows in a partition other than C, you'd go look there instead.
The path for Vista should be similar, but I really don't know.
 

darmak

Member

Well it wasn't in Application Data, I looked. I did find, however, several .ini files in the main Winamp folder. inside Plugins I found "SNESAPU.DLL" and "IN_SPC.dll" which had a .ini file referring to them. I edited the file to repeat 999 times, and cut songs at 2 minutes. I then copied the .ini to my DLL folder where my SNESAPU and IN_SPC files are the script uses and ran the game, and no loop. Is it perhaps something that needs to be done with the script? If anyone wants to look at the script / ini files to see if they can fix it, here's a link to a sample project with the script already on it, and a sample .smc file it plays when you start a new game.

http://pawsdarmak.googlepages.com/GameFolder.zip
 

darmak

Member

Ah, you're right about that specific song, in a way. The song itself loops like 12 times in that file, making it appear to loop for like 10 minutes (which I wish all my songs did -.-) but I have here the same example game with different music. These 'songs' are very short. The one that plays when you start a new game in this demo is the battle music for my game. You will notice it plays for probably a minute and a half, then it fades out to silence. It will not loop. http://pawsdarmak.googlepages.com/sample2.zip is where it's at. I'd love to get it to loop. If anyone knows how to alter scripts, perhaps we can hard-code it to replay the song after like 1 minute or something. Thanks
 

darmak

Member

*Bump* I'd appreciate if someone could look into this and make the music loop. Currently I am converting all the .spc music to .mp3 temporarily. This will solve my looping problem, but it doesn't solve the file-size problem. .spc would be optimal...
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top