Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Looking for a simple audio playback library for C++ [closed]

Tags:

c++

windows

audio

I'm working on a simple audio player, which is going quite well, using Qt and everything. But I'm in need of a solid but simple Audio library. I don't need anything fancy such as 3D sound and what do I know what else these things got nowadays. I'm just looking for something simple and efficient.

A list of features I'm looking for:

  1. Audio playback from files
  2. .ogg, .mp3 and .flac should be supported at the very least.
  3. Should be able to pause playback.
  4. I am planning to use it in C++

See. Nothing huge or anything, but at the same time I am having a hard time finding something suitable. The platform I'm targeting is Windows 7.

Anyone out there that knows something that I might be looking for?

like image 651
Jesse Brands Avatar asked Feb 23 '11 16:02

Jesse Brands


3 Answers

The best possible choice in my opinion is the BASS audio library, which is not open source, but free for non-commercial use.

It is used by the AIMP2 audio player, which you can use to check the sound quality, natively supports a lot of formats including MP3 and OGG, and uses plugins to support even more, including FLAC.

like image 93
SirDarius Avatar answered Nov 17 '22 21:11

SirDarius


How about libavcodec ? Its LGPL. I'm not sure about ogg >_<

like image 3
Reno Avatar answered Nov 17 '22 22:11

Reno


I have used BASS before from a Windows C++ program, and it is very simple to use - link the DLL and call a couple of methods to specify the file to play back.

It certainly handles MP3 playback from a file as that's what I was doing.

I wish I could verify OGG and Flac, but alas I'm behind a firewall that has the site blocked.

like image 1
icabod Avatar answered Nov 17 '22 21:11

icabod