C ++ cross platform library that is not GPL / LGPL?

Look for any simple sound libraries to play in windows that are not GPL or LGPL. That is, the software itself is not And either end of the library that it uses is not GPL / LGPL.

I searched for a long time, and everything that seems promising to me (Allegro, SFML, etc.) turned out to have GPL or LGPL code in it. I'm not trying to start a discussion about licensing, this is just my preference, so anyone who knows something is simple, let me know.

I'm not necessarily looking for a cross-platform solution, but I don't want to rely on Windows built-in methods like PlaySound. Any help would be greatly appreciated!

PS To just understand what I mean by simple, this applies to most of the functions I need:

  • Provide a file name or data in memory for the playback function.
  • If possible, define a callback to complete the sound.
+5
source share
6 answers

libsoundio is slightly lower than what you ask for, but it is reliable and licensed by MIT.

+2
source

PortAudio is a low-level sound library (in C) that uses the equivalent of a MIT license

+5
source

http://aumiks.googlecode.com

aumiks::Lib aumiksLibrary(100, aumiks::STEREO_16_44100);
ting::Ref<aumiks::WavSound> snd = aumiks::WavSound::LoadWAV("sample.wav");
ting::Ref<aumiks::Channel> ch = snd->Play();
+3

, , :


http://libcinder.org/

():

audio::SourceRef mAudioSource;
mAudioSource = audio::load( loadResource( MY_RESOURCE ) );
audio::Output::play( mAudioSource );

TempAU
http://www.tempau.com/

Sound sound("somefile.mp3"); // Create sound object
sound.play();                // Play it!

TempAU , . , , , . TempAU libs, LGPL, , , , . , ogg - ,

Cinder BSD, , (ReadMe, ) . cinder, - . , , !

Edit
, libs. , .

http://content.gpwiki.org/index.php/Libraries

Edit...
SDL, 1.3+ - zlib .

...
TempAU, Google BSD.

http://code.google.com/p/tempau/

+2

IrrKLang GPL ( ):

irrKlang - 2D 3D - (Windows, Mac OS X, Linux), -... API.

, .

+1

BASS " " ( , MIT , IANAL), C API.

Their pricing for commercial product licenses is also fairly reasonable.

+1
source

All Articles