Click here to Skip to main content
15,885,899 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

I'm thinking of writing a c++ based HTPC (home theatre) running linux.
This might be easy to do in python, but i also need more c++ experience
As for now i think of something that can play MP3 and DAB (digital audio broadcasts)
And can accept some typed command or by network recieved command.
Later it has to support an arduino board for input (com port communication) but thats for future use.

Basically as for now it will replace my audio hifi set.


Now i am wondering would it be possible to write it in c++ and use some general MP3 and DAB library so the code when finished would easily run on windows and linux ?
I wouldnt like to develop it twice, if its not possible then my code will be linux
Can someone point me to such a library ?

For playing mp3 and perhaps a small sample of how to use it, i'm not new to c++ but i am new to coding something inside linux.

(PS i'm thinking of opensource software here, my code will be like that too)
Posted
Updated 1-Oct-12 7:27am
v3
Comments
Sergey Alexandrovich Kryukov 1-Oct-12 13:26pm    
Of course it's possible, but... what do you mean by "writing"? From scratch? Is so, how could it be "easy" with Python? Could be just a bit too much work, no matter of what complexity. Using some available component? I would not call it "write HTPC"... and then, why? Such thing is already done...
--SA
PGT 1-Oct-12 15:37pm    
If it has been done, could you tell me?.
I've seen a lot of HTPC programs that required a graphical screen.
But i like one without screen, so i wont have to put on my TV to listen to radio, or select a different MP3 song.
Do you know of any that doesnt require a screen ? and would except remote input ?
I dont know and was thinking of writing one from scratch indeed


I've been looking for it but couldnt find something like it.

PS
(for me it would be easier to write in python then c++, because i'm better at python
also python is a higher language so usually its les trouble to create something
the reason i dont choose python for it is that i want to learn from the excersize
too. However if it has been done.. well then there is less reason to make it.
Sergey Alexandrovich Kryukov 10-Oct-12 23:08pm    
Please see my answer.
--SA

linux mint xfce + xbmc + an android app to control it over wifi as a remote.
 
Share this answer
 
PGT wrote:
If it has been done, could you tell me?
With pleasure. I think, there are many products, but the one I know well is VideoLAN. It's open-source and multiplatform:
http://en.wikipedia.org/wiki/VideoLAN[^],
http://www.videolan.org/[^].

I use it on Windows and Linux. It's hard to say what it cannot do. Basically, it can be uses as a player, converter and broadcasting solution, or combination of these roles in one process.

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900