#include #include #include int main(int argc, char** argv) { CEventLoop loop; auto audio_client = AClientConnection::construct(); audio_client->handshake(); if (argc > 1) { if (String(argv[1]) == "-m") { audio_client->set_muted(true); printf("Muted.\n"); return 0; } if (String(argv[1]) == "-M") { audio_client->set_muted(false); printf("Unmuted.\n"); return 0; } int new_volume = atoi(argv[1]); audio_client->set_main_mix_volume(new_volume); } int volume = audio_client->get_main_mix_volume(); printf("Volume: %d\n", volume); return 0; }