roar_exit
let RoarAudio's sound server quit roar_terminate - let RoarAudio's sound server quit as soon as all clients quit
- Provided by: libroar-dev (Version: 1.0~beta12-4)
- Source: roaraudio
- Report a bug
let RoarAudio's sound server quit roar_terminate - let RoarAudio's sound server quit as soon as all clients quit
#include <roaraudio.h>
int roar_exit(struct roar_connection * con);
int roar_terminate(struct roar_connection * con, int terminate);
Ask the sound server to quit.
roar_exit() let the server quit without waiting for any clients. All streams and client connections will be closed cleanly.
roar_terminate() will let the server quit as soon as all clients disconnects and all input streams ended. The listening socket will be closed. This is useful in case of restarting roard.
On success these calls return 0. On error, -1 is returned.
Even when the call was successful you have to use roar_disconnect(3) to disconnect from the server.
FIXME