Reputation: 2241
It is possible From C/C++ in Ubuntu 10.04 Linux to sound the built in bell (buzzer, really) while have a sound card installed? If so, how?
The goal, of course is to squawk the sounder if something is wrong with the sound card. In the best of all possible worlds, a backup speaker where my code can "say", "The sound system is broken."
If the buzzer (AST200Q) can eek out more than just a squawk, how would I have Alsa send sound to it?
Thanks.
Upvotes: 0
Views: 332
Reputation: 1592
You can raise an audio/alarm character in ascii... example
cout << "\a"
This will make the buzzer normally used in post tests to sound.
Upvotes: 1