https://github.com/dlanggamedev/bindbc-soloud
BindBC binding to SoLoud
https://github.com/dlanggamedev/bindbc-soloud
sound-engine
Last synced: 4 months ago
JSON representation
BindBC binding to SoLoud
- Host: GitHub
- URL: https://github.com/dlanggamedev/bindbc-soloud
- Owner: DLangGamedev
- License: bsl-1.0
- Created: 2019-01-22T08:51:20.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-19T15:24:54.000Z (over 1 year ago)
- Last Synced: 2025-03-27T15:19:25.758Z (7 months ago)
- Topics: sound-engine
- Language: D
- Size: 3 MB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING.txt
Awesome Lists containing this project
README
# 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.
[](https://code.dlang.org/packages/bindbc-soloud)
[](https://code.dlang.org/packages/bindbc-soloud)
## 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();
}
```