|
Drag[en]gine Script Module DragonScript 1.32.1
|
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 |
Audio can be captured.
|
static |
Active microphone.
|
static |
Bit rate of audio capture (e.g. 16).
Returns 0 if audio is not being captured.
|
static |
Peak audio level.
Returns value in the range from 0 to 1. Returns 0 if audio is not being captured.
|
static |
Root-mean-square audio level.
Returns value in the range from 0 to 1. Returns 0 if audio is not being captured.
|
static |
Sample rate of audio capture in Hz.
Returns 0 if audio is not being captured.
|
static |
Frame-per-second rate averaged over the last couple of frames.
Returns 0 if module is not using a separate thread.
|
static |
Number of parameters available.
|
static |
Parameter information.
| EOutOfBoundary | index less than 0 or greater than or equal to getParameterCount(). |
|
static |
Named parameter information or null if not found.
|
static |
Parameter value.
| EInvalidParam | Parameter with name not found. |
|
static |
Is capturing audio.
|
static |
Convert magnitude to decibel.
Converts magnitude in the range from 0 to 1 to decibel value.
|
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).
|
static |
Send command.
|
static |
Set active microphone.
|
static |
Set named parameter value.
| EInvalidParam | Parameter with name not found. |
|
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().
|
static |
Stop audio capture.