|
Drag[en]gine Script Module DragonScript 1.35
|
Audio system. More...
Static Public Member Functions | |
Management | |
| static Microphone | getActiveMicrophone () |
| Active microphone. | |
| static void | setActiveMicrophone (Microphone microphone) |
| Set active microphone. | |
| static bool | canCaptureAudio () |
| Audio can be captured. | |
| static void | startAudioCapture () |
| Start audio capture. | |
| static void | stopAudioCapture () |
| Stop audio capture. | |
| static bool | isCapturingAudio () |
| Is capturing audio. | |
| static int | getAudioCaptureSampleRate () |
| Sample rate of audio capture in Hz. | |
| static int | getAudioCaptureBitRate () |
| Bit rate of audio capture (e.g. 16). | |
| static float | getAudioCapturePeak () |
| Peak audio level. | |
| static float | getAudioCaptureRMS () |
| Root-mean-square audio level. | |
| static float | magnitudeToDb (float level) |
| Convert magnitude to decibel. | |
| static float | magnitudeToDbPercentage (float level) |
| Convert magnitude to percentage decibel. | |
Parameters | |
| static int | getParameterCount () |
| Number of parameters available. | |
| static ModuleParameter | getParameterInfo (int index) |
| Parameter information. | |
| static ModuleParameter | getParameterInfo (String name) |
| Named parameter information or null if not found. | |
| static String | getParameterValue (String name) |
| Parameter value. | |
| static void | setParameterValue (String name, String value) |
| Set named parameter value. | |
| static String | sendCommand (String command) |
| Send command. | |
| static int | getFPSRate () |
| Frame-per-second rate averaged over the last couple of frames. | |
Audio system.
This is a native class. This is a pure static class. The class can not be instantiated
|
static |
|
static |
|
static |
Bit rate of audio capture (e.g. 16).
Returns 0 if audio is not being captured.
References getAudioCaptureSampleRate().
Referenced by getAudioCapturePeak().
|
static |
Peak audio level.
Returns value in the range from 0 to 1. Returns 0 if audio is not being captured.
References getAudioCaptureBitRate().
Referenced by getAudioCaptureRMS().
|
static |
Root-mean-square audio level.
Returns value in the range from 0 to 1. Returns 0 if audio is not being captured.
References getAudioCapturePeak().
Referenced by magnitudeToDb().
|
static |
Sample rate of audio capture in Hz.
Returns 0 if audio is not being captured.
Referenced by getAudioCaptureBitRate().
|
static |
Frame-per-second rate averaged over the last couple of frames.
Returns 0 if module is not using a separate thread.
References getFPSRate(), getParameterInfo(), getParameterValue(), sendCommand(), and setParameterValue().
Referenced by getFPSRate().
|
static |
|
static |
Parameter information.
| EOutOfBoundary | index less than 0 or greater than or equal to getParameterCount(). |
Referenced by getFPSRate(), and sendCommand().
|
static |
Named parameter information or null if not found.
References magnitudeToDbPercentage().
|
static |
|
static |
Is capturing audio.
References isCapturingAudio().
Referenced by isCapturingAudio().
|
static |
Convert magnitude to decibel.
Converts magnitude in the range from 0 to 1 to decibel value.
References getAudioCaptureRMS().
Referenced by getParameterCount().
|
static |
Convert magnitude to percentage decibel.
Converts magnitude in the range from 0 to 1 to percentage decibel in the range from 0(-60dB) to 1(0dB).
Referenced by getParameterInfo().
|
static |
|
static |
|
static |
Set named parameter value.
| EInvalidParam | Parameter with name not found. |
References getParameterCount().
Referenced by getFPSRate().
|
static |
Start audio capture.
On certain platforms capturing audio requires explicit user consent. Calling this method can potentially interrupt the application showing a permission dialog. Hence after calling this method it can take some time until the audio capture begins. You can check if audio capturing is running by calling isCapturingAudio().
References startAudioCapture().
Referenced by startAudioCapture().
|
static |