Is there any easy way to play a mp3 file [duplicate] - c++

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How to play mp3 file in c++?
Hi,
I am doing a project which demands the functions of mp3 player. There is no need of giant, full pledged solution, all I want is just "play","pause","stop". I found some libs which are libmad,lame.But, I can't find any example for them. If anybody shed a light on this, I will be thankful to them.
Or Is there any way in Qt

There is a Phonon component in Qt 4.
Not sure about Window, but in Ubuntu it can play pretty much every format whose codec is available.
You might look into Qt Docs at http://doc.qt.nokia.com/latest/phonon-overview.html

Related

What would be the best way to connect to Facebook via C/C++? [duplicate]

This question already has an answer here:
Most complete c++ facebook library [closed]
(1 answer)
Closed 9 years ago.
I'm looking to create a desktop app in C/C++, most likely with Qt, that has the ability to connect (read/post) to Facebook. Which got me thinking, how exactly would you go about doing such a task? I know many desktop apps written in C++, such as Spotify, have the ability to do it. Are there any good libraries available? What's the common way to do it? Will I have to parse Javascript or PHP in C++? I know there's a C# API, which I've used, and it worked fine. Anything similar for C++? Thanks!
If you can get a C++ json interpreter you can use the Graph API. https://developers.facebook.com/docs/getting-started/graphapi/. You make queries over HTTPs and get a response in JSON that you can use however you want.

How to programatically write a PST file [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How can I create an Outlook PST file using .Net?
How can I write an Outlook PST file with headers? Preferably in .NET, though C++ or anything else would be useful too
I have looked at the PST SDK by Microsoft, but it appears to be read only.
The only code I have found is the CodeProject article "Writing Email to the File of the PST Format", but this code can't write e-mail headers - just body and subject.
Your best bet is to use Microsoft's Messaging API (MAPI). There's plenty of help available online, and there's a sample app called MFC Mapi that one of the Microsoft guys wrote to demonstrate how the API works.
Would the .pst file format documentation be of use to you? From the brief look I took, it seems to document the format itself, so you can implement reading/writing functionality. I don't know how detailed it is, since I haven't used it myself.
http://msdn.microsoft.com/en-us/library/ff385210%28v=office.12%29.aspx

FFmpeg API books, tutorial, etc [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
ffmpeg C API documentation/tutorial
Hi!
A have a task to write on-line screen recording using FFmpeg library with C++, but I can't find some documentation, manual, textbook etc. I didn't work with audio-video before at all, I don't know how to start, and can't find where to learn it. Can you help me with that?
In that case, you should check these ffmpeg tutorials.
They show how to open a video file, read/write frames, sync audio and video and a lot more.
Reading the source is unfortunately the only solution.
For understanding H264 there is the reference source code and the H264 book

porting game made using cocos2d c++ on iPod Touch

I have used cocos2d c++ to create a small game on my Windows machine. It looks great and now I am planning to put it on my iPod Touch. Can anyone tell me how can I achieve this without actually porting my app on objective c?
I have MAC machine and I can arrange for Apple Developer license as well.
Please help me in this.
A few years ago, Joel asked the same thing. There are very interesting comments there, you should take a look. This one is very enlightening:
Google "Objective-C++". That will give you ideas how to allow your C++ to interface with Objective-C APIs.
After a quick search on stackoverflow, I found that at that time, someone else asked the same question here: Is it possible to program iPhone in C++

How to create a mp3 player? [duplicate]

This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
Building a simple mp3 music player
I want to create simplest mp3 player in C or C++.
What function or API do I have to use ?
If you just want to write a C or C++ program which plays an mp3 file, you might want to look here: How to play MP3 files in C?.
If you are looking to write something more complex (say a full GUI application to select and play mp3s, including elements to play/pause, jump to a part of the song (and see what part is playing), and view song metadata, etc) than the best advice I can give you is to jump right into your program and start coding. The number of things that would need to be covered to give you an adequate response to a general question are very vast, and we don't know anything about what you are trying to do, what your experience is, or what you might have problems with.
If you jump into it and then ask questions if you get stuck on a part of it, it will overall be a lot more helpful for everyone.
Let me introduce you FMod. It is free for non-commercial use and supports tons of music and sound formats, not only mp3. You should take a look after it for sure! It is so great as simple for use i think.