Miscellaneous functions

Memory dynamically allocated in the Client Lib needs to be released with:

unsigned int ts3client_freeMemory(pointer);á
void* pointer;
á

Parameters

Example:

char* version;

if(ts3client_getClientLibVersion(&version) == ERROR_ok) {
    printf("Version: %s\n", version);
    ts3client_freeMemory(version);
}
[Important]Important

Memory must not be released if the function, which dynamically allocated the memory, returned an error. In that case, the result is undefined and not initialized, so freeing the memory might crash the application.


Instead of sending the sound through the network, it can be routed directly through the playback device, so the user will get immediate audible feedback when for example configuring some sound settings.

unsigned int ts3client_setLocalTestMode(serverConnectionHandlerID, á
ástatus);á
uint64 serverConnectionHandlerID;
intstatus;
á

Parameters

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