more indentation madness, no actual code changes

Original commit message from CVS:
more indentation madness, no actual code changes
This commit is contained in:
Benjamin Otte 2003-04-22 18:28:33 +00:00
parent 8f6ae19cbf
commit f2f10fcade
2 changed files with 84 additions and 83 deletions

View file

@ -81,17 +81,17 @@ static GstElementDetails gst_alsa_src_details = {
};
/* GObject functions */
static void gst_alsa_class_init (GstAlsaClass *klass);
static void gst_alsa_init (GstAlsa *this);
static void gst_alsa_dispose (GObject *object);
static void gst_alsa_set_property (GObject *object,
static void gst_alsa_class_init (GstAlsaClass * klass);
static void gst_alsa_init (GstAlsa * this);
static void gst_alsa_dispose (GObject * object);
static void gst_alsa_set_property (GObject * object,
guint prop_id,
const GValue *value,
GParamSpec *pspec);
static void gst_alsa_get_property (GObject *object,
const GValue * value,
GParamSpec * pspec);
static void gst_alsa_get_property (GObject * object,
guint prop_id,
GValue *value,
GParamSpec *pspec);
GValue * value,
GParamSpec * pspec);
/* GStreamer functions for pads and state changing */
static GstPadTemplate * gst_alsa_src_pad_factory (void);
@ -99,69 +99,69 @@ static GstPadTemplate * gst_alsa_src_request_pad_factory (void);
static GstPadTemplate * gst_alsa_sink_pad_factory (void);
static GstPadTemplate * gst_alsa_sink_request_pad_factory (void);
static GstPad * gst_alsa_request_new_pad (GstElement *element,
GstPadTemplate *templ,
const gchar *name);
static GstPadLinkReturn gst_alsa_link (GstPad *pad,
GstCaps *caps);
static GstCaps * gst_alsa_get_caps (GstPad *pad,
GstCaps *caps);
static GstPad * gst_alsa_request_new_pad (GstElement * element,
GstPadTemplate * templ,
const gchar * name);
static GstPadLinkReturn gst_alsa_link (GstPad * pad,
GstCaps * caps);
static GstCaps * gst_alsa_get_caps (GstPad * pad,
GstCaps * caps);
static GstCaps * gst_alsa_caps (snd_pcm_format_t format,
gint rate,
gint channels);
static GstBufferPool * gst_alsa_src_get_buffer_pool (GstPad *pad);
static GstBufferPool * gst_alsa_src_get_buffer_pool (GstPad * pad);
static GstElementStateReturn gst_alsa_change_state (GstElement *element);
static GstElementStateReturn gst_alsa_change_state (GstElement * element);
/* audio processing functions */
static int gst_alsa_do_mmap (GstAlsa *this,
snd_pcm_sframes_t *avail);
static int gst_alsa_do_mmap (GstAlsa * this,
snd_pcm_sframes_t * avail);
static void gst_alsa_sink_loop (GstElement *element);
static void gst_alsa_src_loop (GstElement *element);
static void gst_alsa_xrun_recovery (GstAlsa *this);
static void gst_alsa_sink_loop (GstElement * element);
static void gst_alsa_src_loop (GstElement * element);
static void gst_alsa_xrun_recovery (GstAlsa * this);
static gboolean gst_alsa_sink_check_event (GstAlsa *this,
static gboolean gst_alsa_sink_check_event (GstAlsa * this,
gint pad_nr,
GstEvent *event);
GstEvent * event);
/* alsa setup / start / stop functions */
static void gst_alsa_set_eos (GstAlsa *this);
static void gst_alsa_set_eos (GstAlsa * this);
static gboolean gst_alsa_probe_hw_params (GstAlsa *this,
GstAlsaFormat *format);
static gboolean gst_alsa_set_hw_params (GstAlsa *this);
static gboolean gst_alsa_set_sw_params (GstAlsa *this);
static gboolean gst_alsa_probe_hw_params (GstAlsa * this,
GstAlsaFormat * format);
static gboolean gst_alsa_set_hw_params (GstAlsa * this);
static gboolean gst_alsa_set_sw_params (GstAlsa * this);
static gboolean gst_alsa_open_audio (GstAlsa *this);
static gboolean gst_alsa_start_audio (GstAlsa *this);
static gboolean gst_alsa_drain_audio (GstAlsa *this);
static gboolean gst_alsa_stop_audio (GstAlsa *this);
static gboolean gst_alsa_close_audio (GstAlsa *this);
static gboolean gst_alsa_open_audio (GstAlsa * this);
static gboolean gst_alsa_start_audio (GstAlsa * this);
static gboolean gst_alsa_drain_audio (GstAlsa * this);
static gboolean gst_alsa_stop_audio (GstAlsa * this);
static gboolean gst_alsa_close_audio (GstAlsa * this);
/* clock functions */
static void gst_alsa_clock_class_init (GstAlsaClockClass *klass);
static void gst_alsa_clock_init (GstAlsaClock *clock);
static void gst_alsa_clock_class_init (GstAlsaClockClass * klass);
static void gst_alsa_clock_init (GstAlsaClock * clock);
static GstAlsaClock * gst_alsa_clock_new (gchar *name,
GstAlsaClockGetTimeFunc func,
GstAlsa* owner);
static void gst_alsa_clock_start (GstAlsaClock *clock);
static void gst_alsa_clock_stop (GstAlsaClock *clock);
static void gst_alsa_clock_start (GstAlsaClock * clock);
static void gst_alsa_clock_stop (GstAlsaClock * clock);
static GstClockTime gst_alsa_clock_get_internal_time (GstClock *clock);
static guint64 gst_alsa_clock_get_resolution (GstClock *clock);
static GstClockEntryStatus gst_alsa_clock_wait (GstClock *clock,
GstClockEntry *entry);
static void gst_alsa_clock_unlock (GstClock *clock,
GstClockEntry *entry);
static GstClockTime gst_alsa_clock_get_internal_time (GstClock * clock);
static guint64 gst_alsa_clock_get_resolution (GstClock * clock);
static GstClockEntryStatus gst_alsa_clock_wait (GstClock * clock,
GstClockEntry * entry);
static void gst_alsa_clock_unlock (GstClock * clock,
GstClockEntry * entry);
static GstClockTime gst_alsa_sink_get_time (GstAlsa *this);
static GstClockTime gst_alsa_src_get_time (GstAlsa *this);
static GstClock * gst_alsa_get_clock (GstElement *element);
static void gst_alsa_set_clock (GstElement *element,
GstClock *clock);
static GstClockTime gst_alsa_sink_get_time (GstAlsa * this);
static GstClockTime gst_alsa_src_get_time (GstAlsa * this);
static GstClock * gst_alsa_get_clock (GstElement * element);
static void gst_alsa_set_clock (GstElement * element,
GstClock * clock);
static GstClockClass * clock_parent_class = NULL;
/* static guint gst_alsa_clock_signals[LAST_SIGNAL] = { 0 }; */

View file

@ -111,19 +111,20 @@ typedef struct {
guint rate;
gint channels;
} GstAlsaFormat;
struct _GstAlsa {
GstElement parent;
/* array of GstAlsaPads */
GstAlsaPad pads[GST_ALSA_MAX_CHANNELS];
gchar *device;
gchar * device;
snd_pcm_stream_t stream;
snd_pcm_t *handle;
guint pcm_caps; /* capabilities of the pcm device */
snd_output_t *out;
snd_pcm_t * handle;
guint pcm_caps; /* capabilities of the pcm device, see GstAlsaPcmCaps */
snd_output_t * out;
GstAlsaFormat *format; /* NULL if undefined */
GstAlsaFormat * format; /* NULL if undefined */
gboolean mmap; /* use mmap transmit (fast) or read/write (sloooow) */
GstAlsaTransmitFunction transmit;
@ -134,7 +135,7 @@ struct _GstAlsa {
gboolean autorecover;
/* clocking */
GstAlsaClock *clock; /* our provided clock */
GstAlsaClock * clock; /* our provided clock */
snd_pcm_uframes_t transmitted; /* samples transmitted since last sync
This thing actually is our master clock.
We will event insert silent samples or