Skip to content

elvodqa/bass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BASS

This project provides bindings to the BASS, a simple and easy-to-use library to enjoy audio programming.

See API.

Usage

To use BASS, add bass as a dependency to your project's package config file.

dub.json

dependencies {
    "bass": "~>0.1.3",
}

dub.sdl

dependency "bass" version="~>0.1.3"

Examples

You can find examples inside examples directory.

A simple example:

import std.stdio;
import bass;

void main()
{
    BASS_Init(-1, 44100, 0, null, null);
    auto chan = BASS_StreamCreateFile(false, "audio.mp3", 0, 0, 0);
    BASS_ChannelPlay(chan, false);
    readln();
}

Dependencies