Description
This is the component provided by the Noise card.
Component name: noise
.
This is the component provided by the Noise card.
Component name: noise
.
clear(channel:number)
Clears the buffer.
process():boolean
Starts processing the buffer and clears it. Returns true on success.
isReady():boolean
returns true if the card is not already processing a command
setMode(channel:number, mode:number):boolean
Sets the audio mode of the specified channel.
add(channel:number, frequency:number, duration:number [, initialDelay:number]):boolean
Adds the frequency played with the duration to the channel's buffer, optionally with a delay before playing. Returns true on success.
getMode(channel:number):number
returns the current mode of the specified channel
play(channels:table):boolean
table must have 8 or fewer entries. Each entry must be a table containing a frequency and a duration as values; plays each frequency for the specified duration. Returns true on success.
getActiveChannels():number
returns the amount of channels currently in use
modes:table
channel_count:table