blob: 5fd89dfd9b918ed13cdfc4e72daab9f62b2055fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <LibAudio/ABuffer.h>
#include <LibAudio/AClientConnection.h>
#include <stdio.h>
int main(int argc, char** argv)
{
CEventLoop loop;
auto audio_client = AClientConnection::construct();
audio_client->handshake();
if (argc > 1) {
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;
}
|