Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

sdlmixer addon for nodejs

tag: v0.0.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

README
node-sdlmixer experiment

This is an experiment to get sdlmixer working together with nodejs.

Note: since I am completely new to nodejs addon development, this
is currently a very bad example of coding it.


Requirements for compilation:
- nodejs
- node-waf
- SDL-dev
- SDL_mixer-dev

tested on ubuntu 11.04 (64bit) with:
*) installing nodejs
*) sudo apt-get install libsdl1.2-dev
*) sudo apt-get install libsdlmixer1.2-dev


npm install node-sdlmixer

$ node
> var p = require("node-sdlmixer");
Opened audio at 22050 Hz 16 bit stereo
numChannels[32]
> p.play("github/node-sdlmixer/wavs/alarm.wav");
Loading github/node-sdlmixer/wavs/alarm.wav
'github/node-sdlmixer/wavs/alarm.wav'
> Playing on channel[1]
Done

Something went wrong with that request. Please try again.