LuaSTG-x Core API
|
Public Member Functions | |
function | getBitDepth () |
function | getChannelCount () |
function | getData () |
function | getMaxSamples () |
function | getName () |
function | getSampleCount () |
function | getSampleRate () |
function | isRecording () |
function | start (local samples, local sampleRate, local bitDepth, local channels) |
function | stop () |
function getBitDepth | ( | ) |
return Bit depth for recording.
function getChannelCount | ( | ) |
return Number of channels for recording.
function getData | ( | ) |
Retreives recorded data.
return SoundData containing data obtained from recording device.
function getMaxSamples | ( | ) |
Gets the maximum number of samples that will be buffered, as set by start().
function getName | ( | ) |
return device name.
function getSampleCount | ( | ) |
return Number of samples currently recorded.
function getSampleRate | ( | ) |
return Sample rate for recording.
function isRecording | ( | ) |
return True if currently recording.
Begins audio input recording process.
param samples Number of samples to buffer.
param sampleRate Desired sample rate.
param bitDepth Desired bit depth (8 or 16).
param channels Desired number of channels.
return True if recording started successfully.
samples | number |
sampleRate | number |
bitDepth | number |
channels | number |
function stop | ( | ) |
Stops audio input recording.