irrKlang is a cross platform sound library for C++, C# and all .NET languages.
irrKlang's current features are:
* Plays multiple file formats, .WAV, .MP3, .OGG, .MOD, .XM, .IT, .S3M...
http://www.ambiera.com/irrklang/index.html
Example using irrKlang in C++
This C++ example code shows how to play an mp3 file:
#include <iostream>
#include <irrKlang.h>
using namespace irrklang;
int main(int argc, const char** argv)
{
// start the sound engine with default parameters
ISoundEngine* engine = createIrrKlangDevice();
if (!engine)
return 0; // error starting up the engine
// play some sound stream, looped
engine->play2D("somefile.mp3", true);
char i = 0;
std::cin >> i; // wait for user to press some key
engine->drop(); // delete engine
return 0;
}
Example using irrKlang in C#
The following example was written in C# and shows how to play an mp3 file:
using IrrKlang;
namespace HelloWorld
{
class Example
{
[STAThread]
static void Main(string[] args)
{
// start up the engine
ISoundEngine engine = new ISoundEngine();
// play a sound file
engine.play2D("somefile.mp3");
// wait until user presses ok to end application
System.Windows.Forms.MessageBox.Show("Playing, press ok to end.");
} // end main()
} // end class
} // end namespace
very intriging im after something like fmod / bass sound quality but without the dll, havent downloaded at present, irrKlang can be used statically only with purchasing a license.
Quote from: Clyde Radcliffe on January 03, 2010
im after something like fmod / bass sound quality but without the dll
What features do you need that miniFMod can't accomplish?
i've used bass more than any, it's stuff like the filters, 3D Surround, Channel Mixing, automatic looping / ramping. as when I play a tune in winamp, mad tracker, bass or bass mod it sounds a lot different to how it is outputted in MiniFMOD / ufmod.