|
a/upexplo/upexplo.cxx |
|
b/upexplo/upexplo.cxx |
|
... |
|
... |
94 |
return;
|
94 |
return;
|
95 |
}
|
95 |
}
|
96 |
if (volume == -1) {
|
96 |
if (volume == -1) {
|
97 |
volume = ctl.getVolume();
|
97 |
volume = ctl.getVolume();
|
98 |
cout << "Current volume: " << volume << endl;
|
98 |
cout << "Current volume: " << volume << endl;
|
|
|
99 |
#warning remove
|
|
|
100 |
sleep(200);
|
99 |
return;
|
101 |
return;
|
100 |
} else {
|
102 |
} else {
|
101 |
if ((volume = ctl.setVolume(volume)) != 0) {
|
103 |
if ((volume = ctl.setVolume(volume)) != 0) {
|
102 |
cerr << "Error setting volume: " << volume << endl;
|
104 |
cerr << "Error setting volume: " << volume << endl;
|
103 |
return;
|
105 |
return;
|