Home

Awesome

DUB Package

bindbc-soloud

BindBC binding to SoLoud sound engine. Comes with a generator script in Python and a soloud.d wrapper module.

Usage example:

import soloud;

void main()
{
    loadSoloud();
    
    Soloud soloud = Soloud.create();
    soloud.init();
    
    WavStream music = WavStream.create();
    music.load("music.mp3");
    int voice = soloud.play(music);
    
    while (soloud.getActiveVoiceCount() > 0)
    {
        // do nothing while music is playing...
    }
    
    music.free();
    soloud.deinit();
}