Author Topic: [C++] The best/smallest c++ mod player is... ?  (Read 107 times)

0 Members and 1 Guest are viewing this topic.

Offline BlackSheep8Bit

  • ZX 81
  • *
  • Posts: 3
  • Karma: 0
    • View Profile


So, i was wondering, whats the best or smallest xm/mod player? Where i can find it and how to use it with my demo.

I've already asked in pouet forums, but they told me i would get better results posting the question here, and please, no BASSMOD, because the dlls is not small, 34kbs is alot if you want to make 64k demos :D

Offline ttemper

  • C= 64
  • **
  • Posts: 99
  • Karma: 7
    • View Profile
Re: [C++] The best/smallest c++ mod player is... ?
« Reply #1 on: February 07, 2012 »
Welcome BlackSheep8Bit...

  • ufmod
  • minifmod

You may want to check out this thread here for some info.


Offline Raizor

  • Senior Member
  • Pentium
  • ********
  • Posts: 548
  • Karma: 86
    • View Profile
Re: [C++] The best/smallest c++ mod player is... ?
« Reply #2 on: February 07, 2012 »
Hi BlackSheep8Bit. I saw the thread on Pouet the other day :)

Personally, I use Minifmod to do what you're trying to do. It's fairly small and allows me to embed both the player and xm file in the exe. You could also do the same with uFmod I believe, but I've never tried uFmod personally. The replayer is probably a tiny bit smaller due to it being ASM rather than C.

I posted a couple of projects with source here for competitions a while back that has minifmod and an embedded XM in it. You can grab them here and here. I store the XM file as a resource in the project. You should find everything you need in that project to get you going.

The compatibility with Minifmod doesn't seem to bad at all to me personally, I've heard people bitch about it not playing all XM files well but it seems to handle everything I've thrown at it so far.

Not sure if anyone else here has used uFmod and can give you some idea of how many bytes you'll save vs minfimod. I understand you're making a 64k intro - good luck! I look forward to seeing it :)

Hope you stick around.

raizor
raizor

Challenge Trophies Won:

Offline hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 960
  • Karma: 394
    • View Profile
    • my stuff
Re: [C++] The best/smallest c++ mod player is... ?
« Reply #3 on: February 07, 2012 »
I've never tried uFmod personally. The replayer is probably a tiny bit smaller due to it being ASM rather than C.
uFmod is not only the smaller library, it also converts modules to a minimal and more compressor friendly format.
Although uFmod was originally based on miniFmod, it sometimes sounds rather different - so the mentioned conversion-process probably works a bit too optimistically.
uFmod's source-code is pretty much unmaintainable, though. You're fucked if it doesn't do what you want.
miniFmod on the other hand is all nice and smooth :)

Back in the days there was also mxmplay/w, a windows port of mxmplay (which was a mini-xm spinoff from cubic player) which gave birth to a couple of hacks.
In particular Sagacity/Thressstate included a (somewhat lossy) sample-compressor made by Digisnap/Matrix which was used here.
I doubt that there's any usable version of the player around, though.
« Last Edit: Yesterday at 12:04 AM by hellfire »
Challenge Trophies Won:

Offline rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2325
  • Karma: 392
    • View Profile
    • http://www.rbraz.com/
Re: [C++] The best/smallest c++ mod player is... ?
« Reply #4 on: February 07, 2012 »
Welcome aboard BlackSheep8Bit  :)

I made two examples for you to test, one using uFmod and another using miniFmod (a compiled version).

See which one you like more and start coding your demo/intro :)


rbz ^ Codigos
Challenge Trophies Won:

Offline BlackSheep8Bit

  • ZX 81
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: [C++] The best/smallest c++ mod player is... ?
« Reply #5 on: Yesterday at 02:23 AM »
Welcome aboard BlackSheep8Bit  :)

I made two examples for you to test, one using uFmod and another using miniFmod (a compiled version).

See which one you like more and start coding your demo/intro :)

Thank you for those exemples, i will make a good use of it!

Thanks everybody that helped me!

Offline ttemper

  • C= 64
  • **
  • Posts: 99
  • Karma: 7
    • View Profile
Re: [C++] The best/smallest c++ mod player is... ?
« Reply #6 on: Yesterday at 04:45 AM »
@rbz, ufmod sounds much nicer in your example binary than minifmod imo. I also noticed that the L/R channels are switched between the two.

Decent tune also ;)

Offline BlackSheep8Bit

  • ZX 81
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: [C++] The best/smallest c++ mod player is... ?
« Reply #7 on: Today at 01:58 AM »
So, it worked, but after i transformed my music into a .h, and included it, when i compile it i got "undeclared identifier", with both EFF and BIN2C (i also tryed BIN2H but nothing)

I Tried with 10 musics, none of them work.
Currently using Visual c++ 2010

I Tried with uFmod and miniFmod
« Last Edit: Today at 02:01 AM by BlackSheep8Bit »

Offline energy

  • Atari ST
  • ***
  • Posts: 237
  • Karma: 21
    • View Profile
Re: [C++] The best/smallest c++ mod player is... ?
« Reply #8 on: Today at 10:19 AM »
Quote
I Tried with 10 musics, none of them work.
Currently using Visual c++ 2010

I Tried with uFmod and miniFmod

so are yu able to post yur project?!
coding: jwasm,masm
hobby: www.scd2003.de