gecko0307 / bindbc-soloud

BindBC binding to SoLoud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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();
}

About

BindBC binding to SoLoud

License:Boost Software License 1.0


Languages

Language:D 73.5%Language:Python 26.5%