Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 801 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 801 Bytes

bindbc-soloud

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

DUB Package DUB Downloads

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