Checking current modes and devices
| Using playback and capture modes and devices |

### Checking current modes and devices

The currently used playback and capture modes for a given server connection handler can be checked with:

`unsigned int ts3client_getCurrentPlayBackMode(` | serverConnectionHandlerID, |
| result`)`; |

`anyID serverConnectionHandlerID`;
`int* result`;

`unsigned int ts3client_getCurrentCaptureMode(` | serverConnectionHandlerID, |
| result`)`; |

`anyID serverConnectionHandlerID`;
`int* result`;

Parameters

- `serverConnectionHandlerID`

  ID of the server connection handler for which the current playback or capture modes are queried.

- `result`

  Address of a variable that receives the current playback or capture mode.

Returns `ERROR_ok` on success, otherwise an error code as defined in `public_errors.h`.

Check the currently used playback and capture devices for a given server connection handler with:

`unsigned int ts3client_getCurrentPlaybackDeviceName(` | serverConnectionHandlerID, |
| result`)`; |

`anyID serverConnectionHandlerID`;
`char** result`;

`unsigned int ts3client_getCurrentCaptureDeviceName(` | serverConnectionHandlerID, |
| result`)`; |

`anyID serverConnectionHandlerID`;
`char** result`;

Parameters

- `serverConnectionHandlerID`

  ID of the server connection handler for which the current playback or capture devices are queried.

- `result`

  Address of a variable that receives the current playback or capture device. Unless the function returns an error, the string must be released using `ts3client_freeMemory`.

Returns `ERROR_ok` on success, otherwise an error code as defined in `public_errors.h`. If an error has occured, the result string is uninitialized and must not be released.

Querying available modes and devices |  | Closing devices