The Audio Control API uses JSON-RPC with some extensions and restrictions. JSON-RPC is a light communication protocol.
The API uses three types of messages.
- Set messages: to set some parameters on the device; the response is usually empty.
- Get messages: to get some parameters from the device; the response contains the requested values.
- Notification messages: messages sent from device without a request from the client, to notify the client about a parameter change.
Get and set messages include an id parameter. The id parameter is used to associate a response with the originating request. Notifications do not include an ID.
Below are some examples: