Audio library

.html ›› .html ››
Parent Previous Next

Audio library

The Audio library provides functions for playing and handling audio. All features are contained in the “Audio” Lua table found in the “audio.lua” unit.


Usage example:

-- First, you need to require the “audio.lua” unit
require("audio.lua");   

-- Now you can access the functions of the library.
Audio.LIBRARY_FUNCTION(Argument1, Argument2, ...);


Properties and attributes


Audio.defaultPlayer


This attribute contains the Audio Player object used for playing audio to the user's default audio device


Remarks:


Functions


function Audio.asyncLoadAudioStream(source)


Asynchronously creates an AudioStream object using the content of an audio file.


Arguments:


Return:


Remarks:



function Audio.play(source[, volume])


Plays an audio file using the user's default audio device.


Arguments:


Return:


Remarks:

       

Created with the Personal Edition of HelpNDoc: Simplify Your Help Documentation Process with a Help Authoring Tool