whitespace fixes

Original commit message from CVS:
whitespace fixes
This commit is contained in:
Thomas Vander Stichele 2005-10-15 15:53:59 +00:00
parent 2b33397ea9
commit 5cb910050a
33 changed files with 96 additions and 96 deletions

View file

@ -519,13 +519,13 @@ GST_START_TEST (test_children_state_change_order_flagged_sink)
ASSERT_STATE_CHANGE_MSG (bus, pipeline, GST_STATE_NULL, GST_STATE_READY, 104); ASSERT_STATE_CHANGE_MSG (bus, pipeline, GST_STATE_NULL, GST_STATE_READY, 104);
/* READY => PAUSED */ /* READY => PAUSED */
/* because of pre-rolling, sink will return ASYNC on state /* because of pre-rolling, sink will return ASYNC on state
* change and change state later when it has a buffer */ * change and change state later when it has a buffer */
ASSERT_STATE_CHANGE_MSG (bus, identity, GST_STATE_READY, GST_STATE_PAUSED, ASSERT_STATE_CHANGE_MSG (bus, identity, GST_STATE_READY, GST_STATE_PAUSED,
105); 105);
#if 0 #if 0
/* From here on, all bets are off. Usually the source changes state next, /* From here on, all bets are off. Usually the source changes state next,
* but it might just as well be that the first buffer produced by the * but it might just as well be that the first buffer produced by the
* source reaches the sink before the source has finished its state change, * source reaches the sink before the source has finished its state change,
* in which case the sink will commit its new state before the source ... */ * in which case the sink will commit its new state before the source ... */
ASSERT_STATE_CHANGE_MSG (bus, src, GST_STATE_READY, GST_STATE_PAUSED, 106); ASSERT_STATE_CHANGE_MSG (bus, src, GST_STATE_READY, GST_STATE_PAUSED, 106);
@ -620,13 +620,13 @@ GST_START_TEST (test_children_state_change_order_semi_sink)
ASSERT_STATE_CHANGE_MSG (bus, pipeline, GST_STATE_NULL, GST_STATE_READY, 204); ASSERT_STATE_CHANGE_MSG (bus, pipeline, GST_STATE_NULL, GST_STATE_READY, 204);
/* READY => PAUSED */ /* READY => PAUSED */
/* because of pre-rolling, sink will return ASYNC on state /* because of pre-rolling, sink will return ASYNC on state
* change and change state later when it has a buffer */ * change and change state later when it has a buffer */
ASSERT_STATE_CHANGE_MSG (bus, identity, GST_STATE_READY, GST_STATE_PAUSED, ASSERT_STATE_CHANGE_MSG (bus, identity, GST_STATE_READY, GST_STATE_PAUSED,
205); 205);
#if 0 #if 0
/* From here on, all bets are off. Usually the source changes state next, /* From here on, all bets are off. Usually the source changes state next,
* but it might just as well be that the first buffer produced by the * but it might just as well be that the first buffer produced by the
* source reaches the sink before the source has finished its state change, * source reaches the sink before the source has finished its state change,
* in which case the sink will commit its new state before the source ... */ * in which case the sink will commit its new state before the source ... */
ASSERT_STATE_CHANGE_MSG (bus, src, GST_STATE_READY, GST_STATE_PAUSED, 206); ASSERT_STATE_CHANGE_MSG (bus, src, GST_STATE_READY, GST_STATE_PAUSED, 206);

View file

@ -192,11 +192,11 @@ GST_START_TEST (test_simplify)
/* check simplified caps, should be: /* check simplified caps, should be:
* *
* video/x-raw-rgb, bpp=(int)8, depth=(int)8, endianness=(int)1234, * video/x-raw-rgb, bpp=(int)8, depth=(int)8, endianness=(int)1234,
* framerate=(double)[ 1, 100 ], width=(int)[ 16, 4096 ], * framerate=(double)[ 1, 100 ], width=(int)[ 16, 4096 ],
* height=(int)[ 16, 4096 ]; * height=(int)[ 16, 4096 ];
* video/x-raw-yuv, format=(fourcc){ YV12, YUY2, I420 }, * video/x-raw-yuv, format=(fourcc){ YV12, YUY2, I420 },
* width=(int)[ 16, 4096 ], height=(int)[ 16, 4096 ], * width=(int)[ 16, 4096 ], height=(int)[ 16, 4096 ],
* framerate=(double)[ 1, 100 ] * framerate=(double)[ 1, 100 ]
*/ */
fail_unless (gst_caps_get_size (caps) == 2); fail_unless (gst_caps_get_size (caps) == 2);

View file

@ -445,7 +445,7 @@ GST_START_TEST (test_value_subtract_int)
const GValue *tmp; const GValue *tmp;
gboolean ret; gboolean ret;
/* int <-> int /* int <-> int
*/ */
g_value_init (&src1, G_TYPE_INT); g_value_init (&src1, G_TYPE_INT);
g_value_set_int (&src1, 10); g_value_set_int (&src1, 10);
@ -463,7 +463,7 @@ GST_START_TEST (test_value_subtract_int)
g_value_unset (&src1); g_value_unset (&src1);
g_value_unset (&src2); g_value_unset (&src2);
/* int <-> int_range /* int <-> int_range
*/ */
/* would yield an empty set */ /* would yield an empty set */
@ -547,7 +547,7 @@ GST_START_TEST (test_value_subtract_int)
g_value_unset (&src1); g_value_unset (&src1);
g_value_unset (&src2); g_value_unset (&src2);
/* int_range <-> int_range /* int_range <-> int_range
*/ */
/* same range, empty set */ /* same range, empty set */
@ -720,7 +720,7 @@ GST_START_TEST (test_value_subtract_double)
const GValue *tmp; const GValue *tmp;
gboolean ret; gboolean ret;
/* double <-> double /* double <-> double
*/ */
g_value_init (&src1, G_TYPE_DOUBLE); g_value_init (&src1, G_TYPE_DOUBLE);
g_value_set_double (&src1, 10.0); g_value_set_double (&src1, 10.0);
@ -738,7 +738,7 @@ GST_START_TEST (test_value_subtract_double)
g_value_unset (&src1); g_value_unset (&src1);
g_value_unset (&src2); g_value_unset (&src2);
/* double <-> double_range /* double <-> double_range
*/ */
/* would yield an empty set */ /* would yield an empty set */
@ -819,7 +819,7 @@ GST_START_TEST (test_value_subtract_double)
g_value_unset (&src1); g_value_unset (&src1);
g_value_unset (&src2); g_value_unset (&src2);
/* double_range <-> double_range /* double_range <-> double_range
*/ */
/* same range, empty set */ /* same range, empty set */

View file

@ -22,7 +22,7 @@
static void static void
fill_queue (GstElement * queue, gint level, GstBin * pipeline) fill_queue (GstElement * queue, gint level, GstBin * pipeline)
{ {
/* this needs to iterate till something is pushed /* this needs to iterate till something is pushed
* in the queue */ * in the queue */
gst_bin_iterate (pipeline); gst_bin_iterate (pipeline);
} }

View file

@ -1,6 +1,6 @@
/* /*
* audio-example.c * audio-example.c
* *
* Build a pipeline with testaudiosource->alsasink * Build a pipeline with testaudiosource->alsasink
* and sweep frequency and volume * and sweep frequency and volume
* *

View file

@ -1,6 +1,6 @@
/* /*
* cutter.c - cut audio into pieces based on silence - thomas@apestaart.org * cutter.c - cut audio into pieces based on silence - thomas@apestaart.org
* *
* construct a simple pipeline osssrc ! cutter ! filesink * construct a simple pipeline osssrc ! cutter ! filesink
* pause when necessary, change output * pause when necessary, change output
* *
@ -111,7 +111,7 @@ main (int argc, char *argv[])
gst_init (&argc, &argv); gst_init (&argc, &argv);
/* /*
if (argc == 1) if (argc == 1)
{ {
g_print("usage: %s <filename1> <filename2> <...>\n", argv[0]); g_print("usage: %s <filename1> <filename2> <...>\n", argv[0]);
exit(-1); exit(-1);

View file

@ -3,12 +3,12 @@
* thomas@apestaart.org * thomas@apestaart.org
*/ */
typedef struct typedef struct
{ {
GstElement *pipe; GstElement *pipe;
GstElement *filesink; GstElement *filesink;
GstElement *audiosink; GstElement *audiosink;
char *location; char *location;
int channel_id; int channel_id;
} output_channel_t; } output_channel_t;

View file

@ -1,15 +1,15 @@
/* /*
* mixer.c - stereo audio mixer - thomas@apestaart.org * mixer.c - stereo audio mixer - thomas@apestaart.org
* example based on helloworld * example based on helloworld
* demonstrates the adder plugin and the volume envelope plugin * demonstrates the adder plugin and the volume envelope plugin
* work in progress but do try it out * work in progress but do try it out
* *
* Latest change : 28/08/2001 * Latest change : 28/08/2001
* trying to adapt to incsched * trying to adapt to incsched
* delayed start for channels > 1 * delayed start for channels > 1
* now works by quickhacking the * now works by quickhacking the
* adder plugin to set * adder plugin to set
* GST_ELEMENT_COTHREAD_STOPPING * GST_ELEMENT_COTHREAD_STOPPING
* Version : 0.5.1 * Version : 0.5.1
*/ */
@ -150,7 +150,7 @@ main (int argc, char *argv[])
/* register a volume envelope */ /* register a volume envelope */
printf ("\tregistering volume envelope...\n"); printf ("\tregistering volume envelope...\n");
/* /*
* this is the volenv : * this is the volenv :
* each song gets a slot of 5 seconds, with a 5 second fadeout * each song gets a slot of 5 seconds, with a 5 second fadeout
* at the end of that, all audio streams play simultaneously * at the end of that, all audio streams play simultaneously
@ -372,7 +372,7 @@ create_input_channel (int id, char *location)
void void
destroy_input_channel (input_channel_t * channel) destroy_input_channel (input_channel_t * channel)
{ {
/* /*
* destroy an input channel * destroy an input channel
*/ */

View file

@ -3,10 +3,10 @@
* thomas@apestaart.org * thomas@apestaart.org
*/ */
typedef struct typedef struct
{ {
GstElement *pipe, *filesrc, *volenv; GstElement *pipe, *filesrc, *volenv;
char *location; char *location;
int channel_id; int channel_id;
} input_channel_t; } input_channel_t;

View file

@ -1,9 +1,9 @@
/* /*
* This example shows how to use interfaces and the tag subsystem. * This example shows how to use interfaces and the tag subsystem.
* It takes an mp3 file as input, and makes an ogg file out of it. While doing * It takes an mp3 file as input, and makes an ogg file out of it. While doing
* this, it parses the filename and sets artist and title in the ogg file. * this, it parses the filename and sets artist and title in the ogg file.
* It assumes the filename to be "<artist> - <title>.mp3" * It assumes the filename to be "<artist> - <title>.mp3"
* *
* Run the program as "retag <mp3 file>" * Run the program as "retag <mp3 file>"
* *
* To run this program, you need to have the gst-plugins package (specifically * To run this program, you need to have the gst-plugins package (specifically
@ -71,7 +71,7 @@ main (int argc, char *argv[])
g_object_set (G_OBJECT (filesrc), "location", argv[1], NULL); g_object_set (G_OBJECT (filesrc), "location", argv[1], NULL);
g_object_set (G_OBJECT (filesink), "location", filename, NULL); g_object_set (G_OBJECT (filesink), "location", filename, NULL);
/* make sure the tag setter uses our stuff /* make sure the tag setter uses our stuff
(though that should already be default) */ (though that should already be default) */
gst_tag_setter_set_merge_mode (GST_TAG_SETTER (tag_changer), gst_tag_setter_set_merge_mode (GST_TAG_SETTER (tag_changer),
GST_TAG_MERGE_KEEP); GST_TAG_MERGE_KEEP);

View file

@ -1,9 +1,9 @@
/* /*
* This example shows how to use interfaces and the tag subsystem. * This example shows how to use interfaces and the tag subsystem.
* It takes an mp3 file as input, and makes an ogg file out of it. While doing * It takes an mp3 file as input, and makes an ogg file out of it. While doing
* this, it parses the filename and sets artist and title in the ogg file. * this, it parses the filename and sets artist and title in the ogg file.
* It assumes the filename to be "<artist> - <title>.mp3" * It assumes the filename to be "<artist> - <title>.mp3"
* *
* Run the program as "transcode <mp3 file>" * Run the program as "transcode <mp3 file>"
* *
* To run this program, you need to have the gst-plugins package (specifically * To run this program, you need to have the gst-plugins package (specifically
@ -80,7 +80,7 @@ main (int argc, char *argv[])
g_object_set (G_OBJECT (filesink), "location", filename, NULL); g_object_set (G_OBJECT (filesink), "location", filename, NULL);
g_free (filename); g_free (filename);
/* make sure the tag setter uses our stuff /* make sure the tag setter uses our stuff
(though that should already be default) */ (though that should already be default) */
gst_tag_setter_set_merge_mode (GST_TAG_SETTER (encoder), GST_TAG_MERGE_KEEP); gst_tag_setter_set_merge_mode (GST_TAG_SETTER (encoder), GST_TAG_MERGE_KEEP);
/* set the tagging information */ /* set the tagging information */

View file

@ -319,7 +319,7 @@ gst_controlled_property_new (GObject * object, const gchar * name)
* first timestamp is at 5 * first timestamp is at 5
* requested value if for timestamp=3 * requested value if for timestamp=3
* LINEAR and Co. would need to interpolate from default value to value * LINEAR and Co. would need to interpolate from default value to value
* at timestamp 5 * at timestamp 5
*/ */
signal_name = g_alloca (8 + 1 + strlen (name)); signal_name = g_alloca (8 + 1 + strlen (name));
g_sprintf (signal_name, "notify::%s", name); g_sprintf (signal_name, "notify::%s", name);
@ -787,7 +787,7 @@ gst_controller_get (GstController * self, gchar * property_name,
* gst_controller_get_all: * gst_controller_get_all:
* @self: the controller to get the list from * @self: the controller to get the list from
* @property_name: the name of the property to get the list for * @property_name: the name of the property to get the list for
* *
* Returns a read-only copy of the list of GstTimedValue for the given property. * Returns a read-only copy of the list of GstTimedValue for the given property.
* Free the list after done with it. * Free the list after done with it.
* *
@ -871,7 +871,7 @@ gst_controller_sync_values (GstController * self, GstClockTime timestamp)
} }
} }
g_mutex_unlock (self->lock); g_mutex_unlock (self->lock);
/* TODO what can here go wrong, to return FALSE ? /* TODO what can here go wrong, to return FALSE ?
BilboEd : Nothing I guess, as long as all the checks are made when creating the controller, BilboEd : Nothing I guess, as long as all the checks are made when creating the controller,
adding/removing controlled properties, etc... adding/removing controlled properties, etc...
*/ */
@ -888,7 +888,7 @@ gst_controller_sync_values (GstController * self, GstClockTime timestamp)
* Function to be able to get an array of values for one or more given element * Function to be able to get an array of values for one or more given element
* properties. * properties.
* *
* If the GstValueArray->values array in list nodes is NULL, it will be created * If the GstValueArray->values array in list nodes is NULL, it will be created
* by the function. * by the function.
* The type of the values in the array are the same as the property's type. * The type of the values in the array are the same as the property's type.
* *
@ -1065,7 +1065,7 @@ _gst_controller_class_init (GstControllerClass * klass)
/* register properties */ /* register properties */
/* register signals */ /* register signals */
/* set defaults for overridable methods */ /* set defaults for overridable methods */
/* TODO which of theses do we need ? /* TODO which of theses do we need ?
BilboEd : none :) BilboEd : none :)
*/ */
} }

View file

@ -81,7 +81,7 @@ typedef struct _GstValueArray
/** /**
* GstInterpolateMode: * GstInterpolateMode:
* @GST_INTERPOLATE_NONE: steps-like interpolation, default * @GST_INTERPOLATE_NONE: steps-like interpolation, default
* @GST_INTERPOLATE_TRIGGER: returns the default value of the property, * @GST_INTERPOLATE_TRIGGER: returns the default value of the property,
* except for times with specific values * except for times with specific values
* @GST_INTERPOLATE_LINEAR: linear interpolation * @GST_INTERPOLATE_LINEAR: linear interpolation
* @GST_INTERPOLATE_QUADRATIC: square interpolation * @GST_INTERPOLATE_QUADRATIC: square interpolation
@ -228,7 +228,7 @@ const GList *gst_controller_get_all (GstController * self,
gboolean gst_controller_sync_values (GstController * self, gboolean gst_controller_sync_values (GstController * self,
GstClockTime timestamp); GstClockTime timestamp);
gboolean gst_controller_get_value_arrays (GstController * self, gboolean gst_controller_get_value_arrays (GstController * self,
GstClockTime timestamp, GSList * value_arrays); GstClockTime timestamp, GSList * value_arrays);
gboolean gst_controller_get_value_array (GstController * self, gboolean gst_controller_get_value_array (GstController * self,

View file

@ -45,7 +45,7 @@ extern GQuark __gst_controller_key;
* Convenience function for GObject * Convenience function for GObject
* *
* Creates a GstController that allows you to dynamically control one, or more, GObject properties. * Creates a GstController that allows you to dynamically control one, or more, GObject properties.
* If the given GObject already has a GstController, it adds the given properties to the existing * If the given GObject already has a GstController, it adds the given properties to the existing
* controller and returns that controller. * controller and returns that controller.
* *
* Returns: The GstController with which the user can control the given properties dynamically or NULL if * Returns: The GstController with which the user can control the given properties dynamically or NULL if
@ -171,7 +171,7 @@ gst_object_sync_values (GObject * object, GstClockTime timestamp)
* Function to be able to get an array of values for one or more given element * Function to be able to get an array of values for one or more given element
* properties. * properties.
* *
* If the GstValueArray->values array in list nodes is NULL, it will be created * If the GstValueArray->values array in list nodes is NULL, it will be created
* by the function. * by the function.
* The type of the values in the array are the same as the property's type. * The type of the values in the array are the same as the property's type.
* *

View file

@ -519,13 +519,13 @@ GST_START_TEST (test_children_state_change_order_flagged_sink)
ASSERT_STATE_CHANGE_MSG (bus, pipeline, GST_STATE_NULL, GST_STATE_READY, 104); ASSERT_STATE_CHANGE_MSG (bus, pipeline, GST_STATE_NULL, GST_STATE_READY, 104);
/* READY => PAUSED */ /* READY => PAUSED */
/* because of pre-rolling, sink will return ASYNC on state /* because of pre-rolling, sink will return ASYNC on state
* change and change state later when it has a buffer */ * change and change state later when it has a buffer */
ASSERT_STATE_CHANGE_MSG (bus, identity, GST_STATE_READY, GST_STATE_PAUSED, ASSERT_STATE_CHANGE_MSG (bus, identity, GST_STATE_READY, GST_STATE_PAUSED,
105); 105);
#if 0 #if 0
/* From here on, all bets are off. Usually the source changes state next, /* From here on, all bets are off. Usually the source changes state next,
* but it might just as well be that the first buffer produced by the * but it might just as well be that the first buffer produced by the
* source reaches the sink before the source has finished its state change, * source reaches the sink before the source has finished its state change,
* in which case the sink will commit its new state before the source ... */ * in which case the sink will commit its new state before the source ... */
ASSERT_STATE_CHANGE_MSG (bus, src, GST_STATE_READY, GST_STATE_PAUSED, 106); ASSERT_STATE_CHANGE_MSG (bus, src, GST_STATE_READY, GST_STATE_PAUSED, 106);
@ -620,13 +620,13 @@ GST_START_TEST (test_children_state_change_order_semi_sink)
ASSERT_STATE_CHANGE_MSG (bus, pipeline, GST_STATE_NULL, GST_STATE_READY, 204); ASSERT_STATE_CHANGE_MSG (bus, pipeline, GST_STATE_NULL, GST_STATE_READY, 204);
/* READY => PAUSED */ /* READY => PAUSED */
/* because of pre-rolling, sink will return ASYNC on state /* because of pre-rolling, sink will return ASYNC on state
* change and change state later when it has a buffer */ * change and change state later when it has a buffer */
ASSERT_STATE_CHANGE_MSG (bus, identity, GST_STATE_READY, GST_STATE_PAUSED, ASSERT_STATE_CHANGE_MSG (bus, identity, GST_STATE_READY, GST_STATE_PAUSED,
205); 205);
#if 0 #if 0
/* From here on, all bets are off. Usually the source changes state next, /* From here on, all bets are off. Usually the source changes state next,
* but it might just as well be that the first buffer produced by the * but it might just as well be that the first buffer produced by the
* source reaches the sink before the source has finished its state change, * source reaches the sink before the source has finished its state change,
* in which case the sink will commit its new state before the source ... */ * in which case the sink will commit its new state before the source ... */
ASSERT_STATE_CHANGE_MSG (bus, src, GST_STATE_READY, GST_STATE_PAUSED, 206); ASSERT_STATE_CHANGE_MSG (bus, src, GST_STATE_READY, GST_STATE_PAUSED, 206);

View file

@ -192,11 +192,11 @@ GST_START_TEST (test_simplify)
/* check simplified caps, should be: /* check simplified caps, should be:
* *
* video/x-raw-rgb, bpp=(int)8, depth=(int)8, endianness=(int)1234, * video/x-raw-rgb, bpp=(int)8, depth=(int)8, endianness=(int)1234,
* framerate=(double)[ 1, 100 ], width=(int)[ 16, 4096 ], * framerate=(double)[ 1, 100 ], width=(int)[ 16, 4096 ],
* height=(int)[ 16, 4096 ]; * height=(int)[ 16, 4096 ];
* video/x-raw-yuv, format=(fourcc){ YV12, YUY2, I420 }, * video/x-raw-yuv, format=(fourcc){ YV12, YUY2, I420 },
* width=(int)[ 16, 4096 ], height=(int)[ 16, 4096 ], * width=(int)[ 16, 4096 ], height=(int)[ 16, 4096 ],
* framerate=(double)[ 1, 100 ] * framerate=(double)[ 1, 100 ]
*/ */
fail_unless (gst_caps_get_size (caps) == 2); fail_unless (gst_caps_get_size (caps) == 2);

View file

@ -445,7 +445,7 @@ GST_START_TEST (test_value_subtract_int)
const GValue *tmp; const GValue *tmp;
gboolean ret; gboolean ret;
/* int <-> int /* int <-> int
*/ */
g_value_init (&src1, G_TYPE_INT); g_value_init (&src1, G_TYPE_INT);
g_value_set_int (&src1, 10); g_value_set_int (&src1, 10);
@ -463,7 +463,7 @@ GST_START_TEST (test_value_subtract_int)
g_value_unset (&src1); g_value_unset (&src1);
g_value_unset (&src2); g_value_unset (&src2);
/* int <-> int_range /* int <-> int_range
*/ */
/* would yield an empty set */ /* would yield an empty set */
@ -547,7 +547,7 @@ GST_START_TEST (test_value_subtract_int)
g_value_unset (&src1); g_value_unset (&src1);
g_value_unset (&src2); g_value_unset (&src2);
/* int_range <-> int_range /* int_range <-> int_range
*/ */
/* same range, empty set */ /* same range, empty set */
@ -720,7 +720,7 @@ GST_START_TEST (test_value_subtract_double)
const GValue *tmp; const GValue *tmp;
gboolean ret; gboolean ret;
/* double <-> double /* double <-> double
*/ */
g_value_init (&src1, G_TYPE_DOUBLE); g_value_init (&src1, G_TYPE_DOUBLE);
g_value_set_double (&src1, 10.0); g_value_set_double (&src1, 10.0);
@ -738,7 +738,7 @@ GST_START_TEST (test_value_subtract_double)
g_value_unset (&src1); g_value_unset (&src1);
g_value_unset (&src2); g_value_unset (&src2);
/* double <-> double_range /* double <-> double_range
*/ */
/* would yield an empty set */ /* would yield an empty set */
@ -819,7 +819,7 @@ GST_START_TEST (test_value_subtract_double)
g_value_unset (&src1); g_value_unset (&src1);
g_value_unset (&src2); g_value_unset (&src2);
/* double_range <-> double_range /* double_range <-> double_range
*/ */
/* same range, empty set */ /* same range, empty set */

View file

@ -22,7 +22,7 @@
static void static void
fill_queue (GstElement * queue, gint level, GstBin * pipeline) fill_queue (GstElement * queue, gint level, GstBin * pipeline)
{ {
/* this needs to iterate till something is pushed /* this needs to iterate till something is pushed
* in the queue */ * in the queue */
gst_bin_iterate (pipeline); gst_bin_iterate (pipeline);
} }

View file

@ -1,6 +1,6 @@
/* /*
* audio-example.c * audio-example.c
* *
* Build a pipeline with testaudiosource->alsasink * Build a pipeline with testaudiosource->alsasink
* and sweep frequency and volume * and sweep frequency and volume
* *

View file

@ -1,6 +1,6 @@
/* /*
* cutter.c - cut audio into pieces based on silence - thomas@apestaart.org * cutter.c - cut audio into pieces based on silence - thomas@apestaart.org
* *
* construct a simple pipeline osssrc ! cutter ! filesink * construct a simple pipeline osssrc ! cutter ! filesink
* pause when necessary, change output * pause when necessary, change output
* *
@ -111,7 +111,7 @@ main (int argc, char *argv[])
gst_init (&argc, &argv); gst_init (&argc, &argv);
/* /*
if (argc == 1) if (argc == 1)
{ {
g_print("usage: %s <filename1> <filename2> <...>\n", argv[0]); g_print("usage: %s <filename1> <filename2> <...>\n", argv[0]);
exit(-1); exit(-1);

View file

@ -3,12 +3,12 @@
* thomas@apestaart.org * thomas@apestaart.org
*/ */
typedef struct typedef struct
{ {
GstElement *pipe; GstElement *pipe;
GstElement *filesink; GstElement *filesink;
GstElement *audiosink; GstElement *audiosink;
char *location; char *location;
int channel_id; int channel_id;
} output_channel_t; } output_channel_t;

View file

@ -1,15 +1,15 @@
/* /*
* mixer.c - stereo audio mixer - thomas@apestaart.org * mixer.c - stereo audio mixer - thomas@apestaart.org
* example based on helloworld * example based on helloworld
* demonstrates the adder plugin and the volume envelope plugin * demonstrates the adder plugin and the volume envelope plugin
* work in progress but do try it out * work in progress but do try it out
* *
* Latest change : 28/08/2001 * Latest change : 28/08/2001
* trying to adapt to incsched * trying to adapt to incsched
* delayed start for channels > 1 * delayed start for channels > 1
* now works by quickhacking the * now works by quickhacking the
* adder plugin to set * adder plugin to set
* GST_ELEMENT_COTHREAD_STOPPING * GST_ELEMENT_COTHREAD_STOPPING
* Version : 0.5.1 * Version : 0.5.1
*/ */
@ -150,7 +150,7 @@ main (int argc, char *argv[])
/* register a volume envelope */ /* register a volume envelope */
printf ("\tregistering volume envelope...\n"); printf ("\tregistering volume envelope...\n");
/* /*
* this is the volenv : * this is the volenv :
* each song gets a slot of 5 seconds, with a 5 second fadeout * each song gets a slot of 5 seconds, with a 5 second fadeout
* at the end of that, all audio streams play simultaneously * at the end of that, all audio streams play simultaneously
@ -372,7 +372,7 @@ create_input_channel (int id, char *location)
void void
destroy_input_channel (input_channel_t * channel) destroy_input_channel (input_channel_t * channel)
{ {
/* /*
* destroy an input channel * destroy an input channel
*/ */

View file

@ -3,10 +3,10 @@
* thomas@apestaart.org * thomas@apestaart.org
*/ */
typedef struct typedef struct
{ {
GstElement *pipe, *filesrc, *volenv; GstElement *pipe, *filesrc, *volenv;
char *location; char *location;
int channel_id; int channel_id;
} input_channel_t; } input_channel_t;

View file

@ -1,9 +1,9 @@
/* /*
* This example shows how to use interfaces and the tag subsystem. * This example shows how to use interfaces and the tag subsystem.
* It takes an mp3 file as input, and makes an ogg file out of it. While doing * It takes an mp3 file as input, and makes an ogg file out of it. While doing
* this, it parses the filename and sets artist and title in the ogg file. * this, it parses the filename and sets artist and title in the ogg file.
* It assumes the filename to be "<artist> - <title>.mp3" * It assumes the filename to be "<artist> - <title>.mp3"
* *
* Run the program as "retag <mp3 file>" * Run the program as "retag <mp3 file>"
* *
* To run this program, you need to have the gst-plugins package (specifically * To run this program, you need to have the gst-plugins package (specifically
@ -71,7 +71,7 @@ main (int argc, char *argv[])
g_object_set (G_OBJECT (filesrc), "location", argv[1], NULL); g_object_set (G_OBJECT (filesrc), "location", argv[1], NULL);
g_object_set (G_OBJECT (filesink), "location", filename, NULL); g_object_set (G_OBJECT (filesink), "location", filename, NULL);
/* make sure the tag setter uses our stuff /* make sure the tag setter uses our stuff
(though that should already be default) */ (though that should already be default) */
gst_tag_setter_set_merge_mode (GST_TAG_SETTER (tag_changer), gst_tag_setter_set_merge_mode (GST_TAG_SETTER (tag_changer),
GST_TAG_MERGE_KEEP); GST_TAG_MERGE_KEEP);

View file

@ -1,9 +1,9 @@
/* /*
* This example shows how to use interfaces and the tag subsystem. * This example shows how to use interfaces and the tag subsystem.
* It takes an mp3 file as input, and makes an ogg file out of it. While doing * It takes an mp3 file as input, and makes an ogg file out of it. While doing
* this, it parses the filename and sets artist and title in the ogg file. * this, it parses the filename and sets artist and title in the ogg file.
* It assumes the filename to be "<artist> - <title>.mp3" * It assumes the filename to be "<artist> - <title>.mp3"
* *
* Run the program as "transcode <mp3 file>" * Run the program as "transcode <mp3 file>"
* *
* To run this program, you need to have the gst-plugins package (specifically * To run this program, you need to have the gst-plugins package (specifically
@ -80,7 +80,7 @@ main (int argc, char *argv[])
g_object_set (G_OBJECT (filesink), "location", filename, NULL); g_object_set (G_OBJECT (filesink), "location", filename, NULL);
g_free (filename); g_free (filename);
/* make sure the tag setter uses our stuff /* make sure the tag setter uses our stuff
(though that should already be default) */ (though that should already be default) */
gst_tag_setter_set_merge_mode (GST_TAG_SETTER (encoder), GST_TAG_MERGE_KEEP); gst_tag_setter_set_merge_mode (GST_TAG_SETTER (encoder), GST_TAG_MERGE_KEEP);
/* set the tagging information */ /* set the tagging information */

View file

@ -23,17 +23,17 @@
* SECTION:gstconfig * SECTION:gstconfig
* @short_description: Build configuration options * @short_description: Build configuration options
* *
* This describes the configuration options for GStreamer. When building * This describes the configuration options for GStreamer. When building
* GStreamer there are a lot of parts (known internally as "subsystems" ) that can * GStreamer there are a lot of parts (known internally as "subsystems" ) that can
* be disabled for various reasons. The most common reasons are speed and size, * be disabled for various reasons. The most common reasons are speed and size,
* which is important because GStreamer is designed to run on embedded systems. * which is important because GStreamer is designed to run on embedded systems.
* *
* If a subsystem is disabled, most of this changes are done in an API compatible * If a subsystem is disabled, most of this changes are done in an API compatible
* way, so you don't need to adapt your code in most cases. It is never done in an * way, so you don't need to adapt your code in most cases. It is never done in an
* ABI compatible way though. So if you want to disable a suybsystem, you have to * ABI compatible way though. So if you want to disable a suybsystem, you have to
* rebuild all programs depending on GStreamer, too. * rebuild all programs depending on GStreamer, too.
* *
* If a subsystem is disabled in GStreamer, a value is defined in * If a subsystem is disabled in GStreamer, a value is defined in
* &lt;gst/gst.h&gt;. You can check this if you do subsystem-specific stuff. * &lt;gst/gst.h&gt;. You can check this if you do subsystem-specific stuff.
* <example> * <example>
* <title>Doing subsystem specific things</title> * <title>Doing subsystem specific things</title>

View file

@ -29,7 +29,7 @@
* You can also use the macros to keep the GStreamer version information in your * You can also use the macros to keep the GStreamer version information in your
* application. * application.
* *
* Use the gst_version() function if you want to know which version of * Use the gst_version() function if you want to know which version of
* GStreamer you are currently linked against. * GStreamer you are currently linked against.
* *
* The version macros get defined by including "gst/gst.h". * The version macros get defined by including "gst/gst.h".

View file

@ -1,7 +1,7 @@
/* /*
* dirent.c * dirent.c
* *
* Derived from DIRLIB.C by Matt J. Weinstein * Derived from DIRLIB.C by Matt J. Weinstein
* This note appears in the DIRLIB.H * This note appears in the DIRLIB.H
* DIRLIB.H by M. J. Weinstein Released to public domain 1-Jan-89 * DIRLIB.H by M. J. Weinstein Released to public domain 1-Jan-89
* *
@ -11,7 +11,7 @@
* *
* Resource leaks fixed by <steve.lhomme@free.fr> * Resource leaks fixed by <steve.lhomme@free.fr>
* *
* *
* $Revision$ * $Revision$
* $Author$ * $Author$
* $Date$ * $Date$
@ -156,7 +156,7 @@ _treaddir (_TDIR * dirp)
} else { } else {
/* Get the next search entry. */ /* Get the next search entry. */
if (_tfindnext (dirp->dd_handle, &(dirp->dd_dta))) { if (_tfindnext (dirp->dd_handle, &(dirp->dd_dta))) {
/* We are off the end or otherwise error. /* We are off the end or otherwise error.
_findnext sets errno to ENOENT if no more file _findnext sets errno to ENOENT if no more file
Undo this. */ Undo this. */
DWORD winerr = GetLastError (); DWORD winerr = GetLastError ();

View file

@ -81,7 +81,7 @@
#define GST_EXPORT __declspec(dllimport) extern #define GST_EXPORT __declspec(dllimport) extern
#endif #endif
#else /* not WIN32 */ #else /* not WIN32 */
#define GST_PLUGIN_EXPORT #define GST_PLUGIN_EXPORT
#define GST_EXPORT extern #define GST_EXPORT extern
#endif #endif

View file

@ -27,7 +27,7 @@
/* /*
* Use these only when you want to know what GStreamer version your stuff was * Use these only when you want to know what GStreamer version your stuff was
* compiled against. * compiled against.
* Use the #gst_version function if you want to know which version of * Use the #gst_version function if you want to know which version of
* GStreamer you are currently linked against. * GStreamer you are currently linked against.
*/ */
#define GST_VERSION_MAJOR 0 #define GST_VERSION_MAJOR 0

View file

@ -1,4 +1,4 @@
/* /*
* tchar.h * tchar.h
* *
* Unicode mapping layer for the standard C library. By including this * Unicode mapping layer for the standard C library. By including this
@ -150,7 +150,7 @@ typedef wchar_t _TCHAR;
#define _totupper towupper #define _totupper towupper
#define _totlower towlower #define _totlower towlower
#define _tcsftime wcsftime #define _tcsftime wcsftime
/* Macro functions */ /* Macro functions */
#define _tcsdec _wcsdec #define _tcsdec _wcsdec
#define _tcsinc _wcsinc #define _tcsinc _wcsinc
#define _tcsnbcnt _wcsncnt #define _tcsnbcnt _wcsncnt
@ -331,7 +331,7 @@ typedef char _TCHAR;
#define _tstrtime _strtime #define _tstrtime _strtime
#define _tutime _utime #define _tutime _utime
#define _tcsftime strftime #define _tcsftime strftime
/* Macro functions */ /* Macro functions */
#define _tcsdec _strdec #define _tcsdec _strdec
#define _tcsinc _strinc #define _tcsinc _strinc
#define _tcsnbcnt _strncnt #define _tcsnbcnt _strncnt

View file

@ -31,7 +31,7 @@ extern "C" {
# define MAP_FAILED ((void *) -1) # define MAP_FAILED ((void *) -1)
# endif # endif
# define PROT_READ PAGE_READONLY # define PROT_READ PAGE_READONLY
# define PROT_WRITE PAGE_WRITEONLY # define PROT_WRITE PAGE_WRITEONLY

View file

@ -31,7 +31,7 @@ extern "C" {
# define MAP_FAILED ((void *) -1) # define MAP_FAILED ((void *) -1)
# endif # endif
# define PROT_READ PAGE_READONLY # define PROT_READ PAGE_READONLY
# define PROT_WRITE PAGE_WRITEONLY # define PROT_WRITE PAGE_WRITEONLY