Skip to content

gecko0307/bindbc-soloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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