Blame ext/cdparanoia/gstcdparanoiasrc.h

Packit 971217
/* GStreamer
Packit 971217
 * Copyright (C) 1999 Erik Walthinsen <omega@cse.ogi.edu>
Packit 971217
 *
Packit 971217
 * This library is free software; you can redistribute it and/or
Packit 971217
 * modify it under the terms of the GNU Library General Public
Packit 971217
 * License as published by the Free Software Foundation; either
Packit 971217
 * version 2 of the License, or (at your option) any later version.
Packit 971217
 *
Packit 971217
 * This library is distributed in the hope that it will be useful,
Packit 971217
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 971217
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 971217
 * Library General Public License for more details.
Packit 971217
 *
Packit 971217
 * You should have received a copy of the GNU Library General Public
Packit 971217
 * License along with this library; if not, write to the
Packit 971217
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit 971217
 * Boston, MA 02110-1301, USA.
Packit 971217
 */
Packit 971217
Packit 971217
#ifndef __GST_CD_PARANOIA_SRC_H__
Packit 971217
#define __GST_CD_PARANOIA_SRC_H__
Packit 971217
Packit 971217
#include <gst/audio/gstaudiocdsrc.h>
Packit 971217
Packit 971217
G_BEGIN_DECLS
Packit 971217
Packit 971217
/* on OSX the cdparanoia headers include IOKit framework headers (in particular
Packit 971217
 * SCSICmds_INQUIRY_Definitions.h) which define a structure that has a member
Packit 971217
 * named VERSION, so we must #undef VERSION here for things to compile on OSX */
Packit 971217
static const char GST_PLUGINS_BASE_VERSION[] = VERSION;
Packit 971217
#undef VERSION
Packit 971217
Packit 971217
#ifdef CDPARANOIA_HEADERS_IN_DIR
Packit 971217
  #include <cdda/cdda_interface.h>
Packit 971217
  #include <cdda/cdda_paranoia.h>
Packit 971217
#else
Packit 971217
  #include <cdda_interface.h>
Packit 971217
  #include <cdda_paranoia.h>
Packit 971217
#endif
Packit 971217
Packit 971217
#define GST_TYPE_CD_PARANOIA_SRC            (gst_cd_paranoia_src_get_type())
Packit 971217
#define GST_CD_PARANOIA_SRC(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_CD_PARANOIA_SRC,GstCdParanoiaSrc))
Packit 971217
#define GST_CD_PARANOIA_SRC_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_CD_PARANOIA_SRC,GstCdParanoiaSrcClass))
Packit 971217
#define GST_IS_CD_PARANOIA_SRC(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_CD_PARANOIA_SRC))
Packit 971217
#define GST_IS_CD_PARANOIA_SRC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_CD_PARANOIA_SRC))
Packit 971217
Packit 971217
typedef struct _GstCdParanoiaSrc GstCdParanoiaSrc;
Packit 971217
typedef struct _GstCdParanoiaSrcClass GstCdParanoiaSrcClass;
Packit 971217
Packit 971217
/**
Packit 971217
 * GstCdParanoiaSrc:
Packit 971217
 *
Packit 971217
 * The cdparanoia object structure.
Packit 971217
 */
Packit 971217
struct _GstCdParanoiaSrc {
Packit 971217
  GstAudioCdSrc   audiocdsrc;
Packit 971217
Packit 971217
  /*< private >*/
Packit 971217
  cdrom_drive     *d;
Packit 971217
  cdrom_paranoia  *p;
Packit 971217
Packit 971217
  gint             next_sector; /* -1 or next sector we expect to
Packit 971217
                                 * read, so we know when to do a seek */
Packit 971217
Packit 971217
  gint             paranoia_mode;
Packit 971217
  gint             read_speed;
Packit 971217
  gint             search_overlap;
Packit 971217
  gint             cache_size;
Packit 971217
Packit 971217
  gchar           *generic_device;
Packit 971217
};
Packit 971217
Packit 971217
struct _GstCdParanoiaSrcClass {
Packit 971217
  GstAudioCdSrcClass parent_class;
Packit 971217
Packit 971217
  /* signal callbacks */
Packit 971217
  /**
Packit 971217
   * GstCdParanoiaSrcClass::transport-error:
Packit 971217
   * @src: the GstAudioCdSrc source element object
Packit 971217
   * @sector: the sector at which the error happened
Packit 971217
   *
Packit 971217
   * This signal is emitted when a sector could not be read
Packit 971217
   * because of a transport error.
Packit 971217
   */
Packit 971217
  void (*transport_error)	(GstCdParanoiaSrc * src, gint sector);
Packit 971217
  /**
Packit 971217
   * GstCdParanoiaSrcClass::uncorrected-error:
Packit 971217
   * @src: the GstAudioCdSrc source element object
Packit 971217
   * @sector: the sector at which the error happened
Packit 971217
   *
Packit 971217
   * This signal is emitted when a sector could not be read
Packit 971217
   * because of a transport error.
Packit 971217
   */
Packit 971217
  void (*uncorrected_error)	(GstCdParanoiaSrc * src, gint sector);
Packit 971217
};
Packit 971217
Packit 971217
GType    gst_cd_paranoia_src_get_type (void);
Packit 971217
Packit 971217
G_END_DECLS
Packit 971217
Packit 971217
#endif /* __GST_CD_PARANOIA_SRC_H__ */
Packit 971217