Author Topic: Rad adlib player for windows (OPL2 emulation)  (Read 786 times)

0 Members and 1 Guest are viewing this topic.

Offline smagin

  • ZX 81
  • *
  • Posts: 1
  • Karma: 2
    • View Profile


Hi, everybody!

Here's a simple console-mode player for oldskool .rad adlib tunes. It uses ymf262 (OPL3) emulator from MAME project (though it's too much for it) and WinMM API for streaming audio. Some nice .rad tunes are attached (including a Castlevania tune remix converted to .rad by myself...)

Reality Adlib Tracker (RAD) can still be found, say, here: http://www.scene.org/file.php?file=%2Fmirrors%2Fhornet%2Fmusic%2Fprograms%2Ftrackers%2Fradv1_1a.zip&fileinfo
And it's still usable under DosBox emulator (http://www.dosbox.com)

If someone's interested, a replay library could be made fairly easy from this example...

PS: I need some reports concerning stability as there's much talk around the net about WinMM "deadlocks" when deinitializing. One actually occurred till I made some workarounds... So if the program exits without suspending, everything's fine.

PS2: Sources are included. I used FreeBasic 0.18.5 with no OO or other special features so earlier versions may work.
« Last Edit: June 05, 2008 by smagin »

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 16787
  • Karma: 439
  • evil/good
    • View Profile
    • My Homepage
Re: Rad adlib player for windows (OPL2 emulation)
« Reply #1 on: June 05, 2008 »
I've played most of these songs in the console song player you provided and it hasn't locked up here at all, in fact the songs play really really well :)

ANother thing is that it seems to be nice and small so it would be suitable for small intros :)
Shockwave ^ Codigos
Challenge Trophies Won:

Offline hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 960
  • Karma: 394
    • View Profile
    • my stuff
Re: Rad adlib player for windows (OPL2 emulation)
« Reply #2 on: June 05, 2008 »
very nice, but does quite some aliasing.
Challenge Trophies Won:

Offline rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2325
  • Karma: 392
    • View Profile
    • http://www.rbraz.com/
Re: Rad adlib player for windows (OPL2 emulation)
« Reply #3 on: June 06, 2008 »
Nice! and it works fine here
rbz ^ Codigos
Challenge Trophies Won: