Module Audio

.

Class AudioBus

AudioBus:connect (bus) .
AudioBus:disconnect (bus) .
AudioBus:setChannels (v) .
AudioBus:setSamplerate (v) .
AudioBus:getChannels () .
AudioBus:getSamplerate () .
AudioBus:volume (v) set/get.
AudioBus:pitch (v) set/get.

Class AudioBuffer

AudioBuffer:getChannels () .
AudioBuffer:getSamples () .
AudioBuffer:getSamplerate () .

Class MusicBus

MusicBus:load (file) .
MusicBus:play () .
MusicBus:pause () .
MusicBus:stop () .
MusicBus:setLooping (v) .
MusicBus:isPlaying (v) .

Class SoundBus

SoundBus:setBuffer (buf) .
SoundBus:play () .
SoundBus:pause () .
SoundBus:stop () .
SoundBus:setLooping (v) .
SoundBus:isPlaying (v) .

Class AudioSource

AudioSource:getBus () .
AudioSource:volume (v) .
AudioSource:pitch (v) .
AudioSource:min (v) .
AudioSource:max (v) .

Class AudioStation

AudioStation:play (buffer, pos, min, max, volume, pitch) .


Class AudioBus

.
AudioBus:connect (bus)
.

Parameters:

AudioBus:disconnect (bus)
.

Parameters:

AudioBus:setChannels (v)
.

Parameters:

  • v
AudioBus:setSamplerate (v)
.

Parameters:

  • v
AudioBus:getChannels ()
.
AudioBus:getSamplerate ()
.
AudioBus:volume (v)
set/get.

Parameters:

  • v
AudioBus:pitch (v)
set/get.

Parameters:

  • v

Class AudioBuffer

.
AudioBuffer:getChannels ()
.
AudioBuffer:getSamples ()
.
AudioBuffer:getSamplerate ()
.

Class MusicBus

(AudioBus).
MusicBus:load (file)
.

Parameters:

  • file
MusicBus:play ()
.
MusicBus:pause ()
.
MusicBus:stop ()
.
MusicBus:setLooping (v)
.

Parameters:

  • v
MusicBus:isPlaying (v)
.

Parameters:

  • v

Class SoundBus

(AudioBus).
SoundBus:setBuffer (buf)
.

Parameters:

SoundBus:play ()
.
SoundBus:pause ()
.
SoundBus:stop ()
.
SoundBus:setLooping (v)
.

Parameters:

  • v
SoundBus:isPlaying (v)
.

Parameters:

  • v

Class AudioSource

(Object).
AudioSource:getBus ()
.

Returns:

    AudioBus
AudioSource:volume (v)
.

Parameters:

  • v
AudioSource:pitch (v)
.

Parameters:

  • v
AudioSource:min (v)
.

Parameters:

  • v
AudioSource:max (v)
.

Parameters:

  • v

Class AudioStation

(Object).
AudioStation:play (buffer, pos, min, max, volume, pitch)
.

Parameters:

generated by LDoc 1.4.6 Last updated 2017-04-02 18:22:49