Moai SDK  1.5 revision 1 (MoaiEdition)
MOAIUntzSystem Class Reference

Inherits MOAIGlobalClass< TYPE, SUPER >.

List of all members.

Function List

  getSampleRate
  initialize
  setSampleRate
  setVolume
  getVolume

Function Documentation

Return the system's current sample rate.


function getSampleRate ()
Returns:
sampleRate ( number )

Return the system's current volume.


function getVolume ()
Returns:
volume ( number )

Initialize the sound system.


function initialize ( [ number sampleRate, number numFrames ] )
Parameters:
sampleRate ( number ) Optional. Default value is 44100.
numFrames ( number ) Optional. Default value is 8192
Returns:
nil

Set the system sample rate.


function setSampleRate ( [ number sampleRate ] )
Parameters:
sampleRate ( number ) Optional. Default value is 44100.
Returns:
nil

Set the system level volume.


function setVolume ( [ number volume ] )
Parameters:
volume ( number ) Optional. Valid Range: 0 >= x <= 1.0 (Default value is 1.0)
Returns:
nil