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

mironicurse

Well-Known Member
OP
Member
Joined
Sep 28, 2015
Messages
141
Trophies
0
Age
30
XP
591
Country
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.
 

CalebW

Fellow Temper
Member
Joined
Jun 29, 2012
Messages
638
Trophies
0
Location
Texas
XP
545
Country
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.
 

elhobbs

Well-Known Member
Member
Joined
Jul 28, 2008
Messages
1,044
Trophies
1
XP
3,034
Country
United States
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.
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.
 
  • Like
Reactions: mironicurse

elBenyo

Wad of meat.
Member
Joined
Jan 2, 2016
Messages
487
Trophies
0
Age
33
XP
885
Country
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.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BakerMan
    I rather enjoy a life of taking it easy. I haven't reached that life yet though.
    BakerMan @ BakerMan: "I'm cheating on you with your hamster's cousin's owner's dog's favorite tree" +1