Virtjs Interface: Audio (original) (raw)
Audio
Methods
setInputFormat(format)
An engine will call this function to inform the device of the new input format.
Throw an exception if the audio device doesn't support the new input format.
Parameters:
| Name | Type | Description |
|---|---|---|
| format | AudioInputFormat | The new input format. |
Source:
validateInputFormat(format)
An engine will call this function to check if the device supports the specified input format.
Return true if the audio device supports the specified input format.
Parameters:
| Name | Type | Description |
|---|---|---|
| format | AudioInputFormat | The input format to validate. |
Source: