Set sound card property
1. API Description
This API is used to set the property of an sound card.
Request mode:
- V2.6.0 and above: POST [ip]/mwapi/V2.0/audio/set-audio-card-mixer
- V2.5.0 and below: POST [ip]/mwapi/set-audio-card-mixer
Administrator Rights | Logged-in |
---|---|
No | Yes |
2. Input Parameters
Name | Required | Type | Description |
---|---|---|---|
card | Yes | Int | The unique identifier for the sound card device, which can be obtained via Get sound card device list |
id | Yes | Int | The ID of the sound card, which can be obtained via Get sound card property |
vol | Yes | Int | The volume, ranging from 0 to 100 |
3. Output Parameters
Name | Type | Description |
---|---|---|
status | Int | Status code |
4. Example
Setting the volume of sound card 7 (mic gain) of the sound card device 0 (USB Fusion audio) to 100.
Input Example
{
"card": 0,
"id": 7,
"vol": 100
}
Output Example
{
"status": 0,
}
5. Error Code
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Status | Definition | Description |
---|---|---|
7 | MW_STATUS_INVALID_ARG | Missing required parameters |