[pulseaudio-discuss] [PATCH] vala: Add bindings for libpulse-simple

Alexander Kurtz kurtz.alex at googlemail.com
Tue Feb 7 04:08:24 PST 2012


On Tue, 2012-02-07 at 13:59 +0530, Arun Raghavan wrote:
> Nice. Do you have a test program for this? Makes it a lot easier to
> verify that things are working when more changes happen in the future
> and to catch leaks. We could drop it in vala/examples or some such for
> reference.

I have attached two small Vala programs which will test/demonstrate
audio playback (SimplePiano) and recording (TapDetector) using
libpulse-simple. Compile with "valac --pkg=libpulse-simple $FILE".

SimplePiano: Plays a short song when started. You can supply your own 
             song as the first argument.
TapDetector: Detects when you tap/knock on your microphone.

Is this what you wanted?

Best regards

Alexander Kurtz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SimplePiano.vala
Type: text/x-vala
Size: 2838 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20120207/fb7fd5c7/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TapDetector.vala
Type: text/x-vala
Size: 1536 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20120207/fb7fd5c7/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20120207/fb7fd5c7/attachment-0001.pgp>


More information about the pulseaudio-discuss mailing list