From 328506bf6a7cc77696abadc43c7c56c8d506377a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 12 Jan 2007 10:25:40 +0000 Subject: ext/jack/gstjackaudiosink.*: Improve docs. Original commit message from CVS: * ext/jack/gstjackaudiosink.c: (jack_sample_rate_cb), (jack_buffer_size_cb), (jack_shutdown_cb), (gst_jack_ring_buffer_acquire): * ext/jack/gstjackaudiosink.h: Improve docs. --- ext/jack/gstjackaudiosink.c | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) (limited to 'ext/jack/gstjackaudiosink.c') diff --git a/ext/jack/gstjackaudiosink.c b/ext/jack/gstjackaudiosink.c index c2c5e656..b57e51cf 100644 --- a/ext/jack/gstjackaudiosink.c +++ b/ext/jack/gstjackaudiosink.c @@ -20,29 +20,45 @@ */ /** - * SECTION:gstjacksink + * SECTION:element-jackaudiosink * @short_description: JACK audio sink * @see_also: #GstBaseAudioSink, #GstRingBuffer * + * + * * A Sink that outputs data to Jack ports. - * - * It will create N Jack ports named out_ where is starting from 1. + * + * + * It will create N Jack ports named out_<num> where <num> is starting from 1. * Each port corresponds to a gstreamer channel. - * + * + * * The samplerate as exposed on the caps is always the same as the samplerate of * the jack server. - * + * + * * When the ::connect property is set to auto, this element will try to connect * each output port to a random physical jack input pin. In this mode, the sink * will expose the number of physical channels on its pad caps. - * + * + * * When the ::connect property is set to none, the element will accept any * number of input channels and will create (but not connect) an output port for * each channel. - * + * + * * The element will generate an error when the Jack server is shut down when it * was PAUSED or PLAYING. This element does not support dynamic rate and buffer * size changes at runtime. + * + * Example launch line + * + * + * gst-launch audiotestsrc ! jackaudiosink + * + * Play a sine wave to using jack. + * + * * * Last reviewed on 2006-11-30 (0.10.4) */ @@ -394,9 +410,9 @@ gst_jack_ring_buffer_close_device (GstRingBuffer * buf) /* allocate a buffer and setup resources to process the audio samples of * the format as specified in @spec. * - * We allocate N jack ports for each channel. If we are asked to automatically - * make a connection with physical ports, we connect as many ports as there are - * physical ports, leaving leftover ports unconnected. + * We allocate N jack ports, one for each channel. If we are asked to + * automatically make a connection with physical ports, we connect as many + * ports as there are physical ports, leaving leftover ports unconnected. * * It is assumed that samplerate and number of channels are acceptable since our * getcaps method will always provide correct values. If unacceptable caps are -- cgit v1.2.1