Click here to Skip to main content
13,142,065 members (57,088 online)
Rate this:
Please Sign up or sign in to vote.
See more:

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 1-Oct-12 7:18am
Updated 1-Oct-12 7:27am
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...
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.

(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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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:[^],[^].

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.

Rate this: bad
Please Sign up or sign in to vote.

Solution 3

linux mint xfce + xbmc + an android app to control it over wifi as a remote.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170915.1 | Last Updated 22 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100