Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gecko0307/bindbc-soloud

BindBC binding to SoLoud
https://github.com/gecko0307/bindbc-soloud

Last synced: about 2 months ago
JSON representation

BindBC binding to SoLoud

Awesome Lists containing this project

README

        

[![DUB Package](https://img.shields.io/dub/v/bindbc-soloud.svg)](https://code.dlang.org/packages/bindbc-soloud)

# bindbc-soloud
BindBC binding to [SoLoud sound engine](https://github.com/jarikomppa/soloud). Comes with a generator script in Python and a `soloud.d` wrapper module.

Usage example:
```d
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();
}
```