Giter VIP home page Giter VIP logo

urbisound's Introduction

/*******************************************
*
*	UPlayer version 1.0
*
*   Author: Adam Oleksy
*   date: 16.03.2011
*
********************************************/


Description:
//////////////////////////////////////////
Module to play wav files. It uses 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:
 - to PATH add sdl directory  (ex. C:\Program Files\SDL-1.2.14)

3. For compile sources you have to download and install CMake also. 
CMake website is http://www.cmake.org  
a. Set system Enviroment Variables:
 - SDLDIR (ex. C:\Program Files\SDL-1.2.14);
 - URBI_ROOT (ex. C:\Program Files\Gostai Engine Runtime\2.7\).
b. 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 (1) if sound is playing.

Urbiscript example:
//////////////////////////////////////////

loadModule("UPlayer");
var player=UPlayer.new;
player.play("music.wav"),



Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.