Modules

U Player

Description:

Module to play wav files. It uses SDL library.

Requirement:

Urbi SDK 2.6 or higher
SDL library

Install:

1. Download SDL library from http://www.libsdl.org/ and install them in the system (ex. C:\Program Files\SDL-1.2.14)
2. Under Windows platform add to system Enviroment Variables in variable PATH sdl directory (ex. C:\Program Files\SDL-1.2.14)
3. For compilation from sources you have to download and install CMake also. CMake project website http://www.cmake.org. Add to system Enviroment Variables
- SDLDIR (ex. C:\Program Files\SDL-1.2.14)
- URBI_ROOT (ex. C:\Program Files\Gostai Engine Runtime\2.7\)
and use CMake to generate and configure the project

Module functions:

UPlayer.play("sound.wav"); - play the sound, you can run this function in background
UPlayer.stop; - stop the sound
UPlayer.isPlaying; - returns true if sound is playing

How to use in urbiscript:
loadModule("UPlayer");
var player=UPlayer.new;
player.play("music.wav"),
Download here:

http://lirec.ict.pwr.wroc.pl/~jkedzier/urbi/uplayer.zip




WRUT

Options: