How to play mp3 file in c++? [closed] - c++

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm looking for the easiest way to play an MP3 file in C++. Either a library I could use and just call the function, given the filename, or alternatively something someone has already written that will just run and quit.

What platform are you on? You can check these out:
In case of windows/linux:
FMOD
In case you are programming only on windows/mac osx:
BASS
I would also look for some native APIs in Windows (if you are developing on that platform).
HTH,
Sriram

Qt comes to the rescue (again). The documentation even comes with demo code on how to implement a media player. It can play videos as well, btw.
http://doc.qt.nokia.com/latest/demos-qmediaplayer.html
Works on all platform and with the same syntax = WIN.

Related

Is there a cross platform C/C++ library that gives us CPU and memory usage stats? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm looking to find a C/C++ library that gives me system stats like CPU usage and memory usage.
Is there one that works cross platform?
I just don't want to have to re-invent the wheel (badly).
You could use
SIGAR API (C++)
This is an open source library that does basically what your looking for,
but unfortunally there is no platform independent function for this.
If you want one for cross-platforms, ACE has a good one that works for a lot of languages! Note that ACE abstracts the OS in general, and might be heavyweight for what you want.
ACE

v4l2 very simple example [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm looking for a simple example for camera access in Linux using V4L2.
Where I can find it? As simple, as possible.
Thanks,
Try the uvccapture code here -> http://staticwave.ca/source/uvccapture/
It is very small yet very concrete example which makes use of all the V4l2 concepts (open,set format, allocate memory, Request Buffer, Dqbuffer and Query-buffer - all intems of ioclts).
uvcgrab() function is the one to look for which makes use of Dqbuffer and Query-buffer.
ioctl (vd->fd, VIDIOC_DQBUF, &vd->buf);
ioctl (vd->fd, VIDIOC_QBUF, &vd->buf)
While Studying it you can keep looking for the ioctl definition in this link which will ease your understanding.
In the API specification, there is an example, also downloadable as a C file
I would advice also trying out v4l-utils.
http://linuxtv.org/downloads/v4l-utils/
It has some easy to use API calls to v4l devices and there is a qt based example in the source to build a custom interface for video devices.

Particle library [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
maybe someone knows a good crossplatform particle library?
I know Pyro particle library, but it's not crossplaftorm and free. There is also Magic Particles (Probably, the best version I need) but there is only theoretical possibility to make a port on Linux.
I'm not sure how good it is, but I remember seeing a post on www.gamedev.net on a open source particle engine written in C++. It appears to be graphics-library agnostic, so you should be able to easily port it to whatever platform you are interested in.
Here's a link:
http://sourceforge.net/projects/sparkengine/

Best C++ RTP/RTSP library [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm looking for a RTP/RTSP library in C++. I found pjsip but it is more C-style. I'm looking for more OO library.
Check live555 Useful libraries and code examples of how to stream stuff from your own app. The repo is full of RTP, RTSP, and SIP code examples and libraries.
JRTPLIB is very nice, and used in well-known projects such as SightSpeed (and lots of little ones). Pretty well-designed, very flexible license; pretty easy to get things right with it.

C++ SpellChecker Library [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Can anybody recommend a good (ideally open source) C++ spell checker library. We are currenly using Talo, which isn't very good, so we are looking to change.
One which includes a grammar checker would also be good.
Thanks
I have heard good things about hunspell. I have used and integrated aspell, which has some nice features and some which I did not like.
If you've got internet access, you can always use on online service like SpellCheck.net which has a CGI interface that you can query.
Following on from Yuval - OpenOffice Lingucomponent