Get sound card device list
1. API Description
This API is used to get sound card device list.
Request mode:
- V2.6.0 and above: POST [ip]/mwapi/V2.0/audio/get-audio-card-list
- V2.5.0 and below: POST [ip]/mwapi/get-audio-card-list
Administrator Rights | Logged-in |
---|---|
No | Yes |
2. Input Parameters
None
3. Output Parameters
Name | Type | Description |
---|---|---|
status | Int | Status code |
cards | Array of CardData | Array of sound cards |
CardData
Name | Type | Description |
---|---|---|
card | Int | The unique identifier for the sound card device |
name | String | The name of the sound card device |
system | Boolean | Whether it is an internal external sound card true: Internal; false: External |
4. Example
Getting the sound card device list.
Input Example
None
Output Example
{
"status": 0,
"cards": [
{
"card": 0,
"name": "USB Fusion Audio",
"system": false
},
{
"card": 3,
"name": "USB Capture HDMI+",
"system": false
}
]
}
5. Error Code
No error code related to the API business logic. For other error codes, see Common Error Codes.