[RoarAudio] Micro HowTo: Notify Beeps ala ^G/XBell() with RoarAudio using µRoar
lion at lion.leolix.org
Sun Feb 28 01:34:04 CET 2010
On Sat, 2010-02-27 at 23:00 +0100, Philipp Schafft wrote:
> with version 0.3beta5 (next release, current snapshots) RoarAudio will
> come with a new feature called 'notify beeps'. Those are small sounds
> which the server generates to notify the user about some event. This is
> about that a console does when sending ^G or the XBell of the X Window
> System (X11).
Here is how you can access this feature using µRoar (libmuroar):
First you need to open the connection to the server using
muroar_connect(). After you have a working connection you can call
muroar_beep() on it. The connect must not be used with muroar_stream().
After you are done you need to disconnect using muroar_quit().
If you close the connection to the server this will also kill all
currently playing beeps (if any are running).
int fh = muroar_connect(NULL, "myApp");
(real world programs need to do error checking!)
more complet examples can be found in the µRoar Manual at:
> Maybe this small howto helps somebody. Comments are wellcome.
(Rah of PH2)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 482 bytes
Desc: This is a digitally signed message part
More information about the RoarAudio