Author Topic: Modplay library for OS Native  (Read 6573 times)

alekmaul (OP)

  • Posts: 330
    • Portabledev
Modplay library for OS Native
« on: October 18, 2009, 10:06:47 am »
This is a port of modplay from Christian Nowak
You can find the original source here :
                       http://chn.bplaced.net/index.php?doc=modplay/modplay.html

This library is used to play MOD, S3M and XM file formats. It's only for developers, this is not a Mod Player !

Current features:
* Suports MOD, S3M and XM
* Extendible with more formats
* Very easily portable, compilable and usable in own applications

To test it, put DMODPLAY.APP in your GAME directory. Put also test.mod in this directory.
Use "3D game" from Dingoo menu and choose DMODPLAY.APP to start song.
Press X a long time to stop playing.

Download all source code and test app here : ModPlay

How to use it with flatmush non sdk lib :
The lib is in src/modplay, it is named libmodplay.a
1: Modify makefile to use lib in compile directory
add LIBMOD    = ../src/modplay
and change LIBS with
  LIBS    = $(LIBMOD)/libmodplay.a  $(LIBROOT)/entry.a -laudio -lfs -llib_c -ludc -los -lmem -lccenv  -lstdc++ -lc -lm -lgcc
2: load song file with a320_sound_init(<song file name>)
Be carefull, this use threading function for dingoo
3: use a320_sound_pause(0); to begin playing
4: when you exit the main function, use   a320_sound_stop(); to stop threading  function

Harteex

  • * Administrator
  • Posts: 713
    • Harteex Productions
Re: Modplay library for OS Native
« Reply #1 on: October 18, 2009, 11:49:15 am »
Great work, thanks a lot :)

Kojote

  • Posts: 36
    • PDRoms - Homebrew for you!
Re: Modplay library for OS Native
« Reply #2 on: October 19, 2009, 10:39:31 pm »
considering modplay is writting from scratch it's a good addition to possible existing solutions!
CEO & Editor @ pdroms.de
Editor @ retromagazine.eu
Project Manager @ retroguru.com

Bouvrie

  • Posts: 124
Re: Modplay library for OS Native
« Reply #3 on: June 20, 2010, 12:45:52 am »
Just now noticed this one while looking for a more compatible MOD player for the Dingoo.

Nice to see an early step on the native firmware! Though I guess the development halted? :(
Write/save problems? Segmentation faults? Black screens? Read the Troubleshooting and FAQ guide first to fix your issues! :)
SD Card readonly/corruption issues? Chkdisk /F and steer clear from DMenu: use GMenu instead!

Harteex

  • * Administrator
  • Posts: 713
    • Harteex Productions
Re: Modplay library for OS Native
« Reply #4 on: June 20, 2010, 10:42:26 am »
Just now noticed this one while looking for a more compatible MOD player for the Dingoo.

Nice to see an early step on the native firmware! Though I guess the development halted? :(

Alekmaul's port of modplay is what I use in GooPlayer.

Bouvrie

  • Posts: 124
Re: Modplay library for OS Native
« Reply #5 on: June 20, 2010, 02:16:27 pm »
Alekmaul's port of modplay is what I use in GooPlayer.
Cool, overlooked that one as well...  ::)

Was hoping for something extendable, like the way WinAmp deals with modular plugins for input filetypes. But S3M and IT support is what I'm looking for (for now), and it looks like GooPlayer can-somewhat deliver. Thanks for the heads up! ;)
Write/save problems? Segmentation faults? Black screens? Read the Troubleshooting and FAQ guide first to fix your issues! :)
SD Card readonly/corruption issues? Chkdisk /F and steer clear from DMenu: use GMenu instead!