Anyone knows lightweight c\c++ audio player with no dependences?

Discussion in '3DS - Homebrew Development and Emulators' started by mironicurse, Sep 24, 2016.

  1. mironicurse
    OP

    mironicurse GBAtemp Regular

    Member
    108
    37
    Sep 28, 2015
    Russia
    I wanna TRY to port that, so don't get too excited about it. Should I write player from scratch instead?
    So for now I want to achieve basic mpeg2/3 audio decoding, output through dsp and multithreading for audio and gui.
     
  2. CalebW

    CalebW Fellow Temper

    Member
    634
    154
    Jun 29, 2012
    United States
    It would be better to write it yourself for the 3ds than try and port some pc software. And good luck finding any without any dependencies, the software has to interface with your hardware in order to play the sound through your speakers. And every computer has different hardware, so that's why the programs have dependencies. Otherwise the devs of the program would have to uniquely code the program to write to the appropriate bytes in memory for every fucking computer out there.
     
  3. elhobbs

    elhobbs GBAtemp Advanced Fan

    Member
    806
    296
    Jul 28, 2008
    United States
    The libraries to decide different formats can likely be ported but I suspect the ui would best best written from scratch. I have used a few different approaches for streaming sound with both CSND and Dsp and my one bit of advice would be to avoid a timer based approach. The high precision timer on the 3ds is not precise enough. It is good for measuring small intervals but it will drift. Dsp with multiple play buffers seems to be the best approach. If you keep several small buffers queued and queue more as they finish to keep the number consistent then it will avoid the common sync issues that cause pops and other hitches in sound playback.
     
    mironicurse likes this.
  4. elBenyo

    elBenyo Wad of meat.

    Member
    399
    70
    Jan 2, 2016
    United States
    Years ago I slapped a DOS mp3 player in DOSbox on my ps3 and it worked fine. The DOSbox for 3DS has SD access. Instead of building a core you can run C+ on the RetroArch core.
     
  5. jsa

    jsa GBAtemp Regular

    Member
    211
    194
    Oct 21, 2015
    United Kingdom
    Devon, UK
    DosBox on 3DS is very slow. Wayyyyyyyy overkill imho