summaryrefslogtreecommitdiffstats
path: root/sys/osxaudio/gstosxaudiosink.h
diff options
context:
space:
mode:
authorJustin Karnegas <justin@affinix.com>2009-01-02 20:39:34 +0000
committerMichael Smith <msmith@xiph.org>2009-01-02 20:39:34 +0000
commit17bb67f873a0bd3c4e631ed510a15799c253fc18 (patch)
tree710ea439dbb43826a10e0037ee144b6133f30b70 /sys/osxaudio/gstosxaudiosink.h
parent996fb72681d3da4fce8cb2e94957fe72aa832d8b (diff)
sys/osxaudio/: Rewrite osxaudio to work more flexibly and more reliably, using a different abstraction layer of corea...
Original commit message from CVS: Patch by: Justin Karnegas <justin@affinix.com> and Michael Smith <msmith@songbirdnest.com> * sys/osxaudio/gstosxaudio.c: * sys/osxaudio/gstosxaudioelement.c: * sys/osxaudio/gstosxaudioelement.h: * sys/osxaudio/gstosxaudiosink.c: * sys/osxaudio/gstosxaudiosink.h: * sys/osxaudio/gstosxaudiosrc.c: * sys/osxaudio/gstosxaudiosrc.h: * sys/osxaudio/gstosxringbuffer.c: * sys/osxaudio/gstosxringbuffer.h: Rewrite osxaudio to work more flexibly and more reliably, using a different abstraction layer of coreaudio that is the recommended way of doing low-level audio I/O on OSX. Fixes byg #564948.
Diffstat (limited to 'sys/osxaudio/gstosxaudiosink.h')
-rw-r--r--sys/osxaudio/gstosxaudiosink.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/sys/osxaudio/gstosxaudiosink.h b/sys/osxaudio/gstosxaudiosink.h
index a46d2448..aac9719f 100644
--- a/sys/osxaudio/gstosxaudiosink.h
+++ b/sys/osxaudio/gstosxaudiosink.h
@@ -1,8 +1,8 @@
/*
* GStreamer
- * Copyright 2005-2006 Zaheer Abbas Merali <zaheerabbas at merali dot org>
- * Copyright 2007 Pioneers of the Inevitable <songbird@songbirdnest.com>
- *
+ * Copyright (C) 2005-2006 Zaheer Abbas Merali <zaheerabbas at merali dot org>
+ * Copyright (C) 2007 Pioneers of the Inevitable <songbird@songbirdnest.com>
+ *
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
@@ -40,11 +40,10 @@
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
- *
- * The development of this code was made possible due to the involvement of Pioneers of
- * the Inevitable, the creators of the Songbird Music player
*
-
+ * The development of this code was made possible due to the involvement of
+ * Pioneers of the Inevitable, the creators of the Songbird Music player
+ *
*/
#ifndef __GST_OSXAUDIOSINK_H__
@@ -56,7 +55,6 @@
G_BEGIN_DECLS
-/* #defines don't like whitespacey bits */
#define GST_TYPE_OSX_AUDIO_SINK \
(gst_osx_audio_sink_get_type())
#define GST_OSX_AUDIO_SINK(obj) \
@@ -64,7 +62,7 @@ G_BEGIN_DECLS
#define GST_OSX_AUDIO_SINK_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_OSX_AUDIO_SINK,GstOsxAudioSinkClass))
-typedef struct _GstOsxAudioSink GstOsxAudioSink;
+typedef struct _GstOsxAudioSink GstOsxAudioSink;
typedef struct _GstOsxAudioSinkClass GstOsxAudioSinkClass;
struct _GstOsxAudioSink
@@ -72,7 +70,8 @@ struct _GstOsxAudioSink
GstBaseAudioSink sink;
AudioDeviceID device_id;
- AudioStreamID stream_id;
+ AudioUnit audiounit;
+ double volume;
};
struct _GstOsxAudioSinkClass