Rockbox Technical Forums

Support and General Use => Audio Playback, Database and Playlists => Topic started by: dustboxednorth on April 01, 2022, 10:57:53 AM

Title: Possibility of libopenmpt implementation?
Post by: dustboxednorth on April 01, 2022, 10:57:53 AM
Mornin'

One thing I was really looking forward to when I installed Rockbox on my iPod 4th generation was listening to some good old tracker modules. Now, the current tracker module playback routines are okay for some earlier, simpler modules, but the lack of accuracy starts to become apparent on stuff that uses pitch bends and such.

As someone who has used OpenMPT for over a decade, I'm well aware of the fact that it is one of the most accurate trackers for PC. From what I understand, it's powered by its own open-source library, called libopenmpt, which gives it such notable accuracy.

Would it be possible to implement this into Rockbox in such a way that I can play modules and have them view in the Now Playing menu, just like one would with .MODs now? It'd be really nice to have myself a decent on-the-go tracker music player. Though, from what I understand, this seems like it'd be a pretty big undertaking, so forgive me if I may be asking for too much.

TIA,
dbn
Title: Re: Possibility of libopenmpt implementation?
Post by: saratoga on April 01, 2022, 11:18:27 AM
That library is in c++ and uses floating point for calculations, so not a good choice for rockbox or embedded devices in general that don't have floating point units.
Title: Re: Possibility of libopenmpt implementation?
Post by: dustboxednorth on April 01, 2022, 11:26:19 AM
Shoot, I see :-\ I know there's also the BASS library by Un4seen Developments, which iirc is also quite accurate and has C APIs. Unfortunately it also seems to utilize floating points for decoding and such.
Title: Re: Possibility of libopenmpt implementation?
Post by: amachronic on April 01, 2022, 11:38:34 AM
I think libopenmpt is a non-starter unfortunately. saratoga beat me to it, but C++ and floating point are just way too much effort to support -- even on fast CPUs with an FPU, which I don't think the iPod 4G has.
Title: Re: Possibility of libopenmpt implementation?
Post by: saratoga on April 01, 2022, 11:45:07 AM
Shoot, I see :-\ I know there's also the BASS library by Un4seen Developments, which iirc is also quite accurate and has C APIs.

More importantly, it is not open source, so you cannot port it to anything.
Title: Re: Possibility of libopenmpt implementation?
Post by: dustboxednorth on April 01, 2022, 12:41:54 PM
Quote
More importantly, it is not open source, so you cannot port it to anything.

forgot about that, damn. guess accurate module playback isn't gonna be implemented for quite a while, then.