Resource icon

ulc-codec Demonstration (NDS) 2022.06.18

Hey everyone.

After developing a GBA player for my MDCT-based audio codec, I decided to port it to the DS, and in the process completely revamp both the UI and API.

As with the GBA player, this is mostly proof-of-concept (decoding 32kHz audio still takes 1-2 frames, at an overall CPU usage of ~35%). But I thought it was pretty nice as a tech demo.

More technical details are available on the GitHub page, but the basics for the codec itself are:
  • Target bitrate: 32..256kbps+ (no hard limits on playback or coding rates)
  • MDCT-based coding using sine window (window switching plus overlap switching to minimize decimation)
  • Noise-fill (similar to PNS)
  • Nybble-based syntax (no entropy-code lookups)

The GitHub page contains the source code to the player as well as the tools necessary to convert your own files.

The ROM file itself has a single demo track embedded in it (Sefa & Crypton - Lastic; all credit goes to them, and I am making no money off this project). If a DLDI interface is available, additional tracks may be added in a folder named "ulc" (an example of this is included in the download, containing Dr. Rude & RATKID - Self Esteem; all credit goes to them for the music).

I've tested the demo on an original R4 as well as an R4SDHCi card, and it works fine, provided that the CPU isn't overloaded (eg. excessively long track names; drawing the text can eat up a lot of CPU time).

Usage:
  • A/B unpauses and pauses music, respectively
  • L/R shoulder buttons to switch between tabs
  • L/R shoulder buttons plus Select plays the previous/next song, respectively
  • Touchscreen should work about as expected (tap to play a song or change playback modes, swipe to scroll, etc.)

The codec itself is free open-source software, under the GPLv3 license.
  • Screenshot.png
    Screenshot.png
    83.5 KB · Views: 3
  • Like
Reactions: IC_
Author
Aikku
Downloads
49
Views
337
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Aikku

General chit-chat
Help Users
  • No one is chatting at the moment.
    DEMONGreninjaPG @ DEMONGreninjaPG: hello