After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 564948 - Fix and clean up osxaudio
Fix and clean up osxaudio
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal normal
: 0.10.14
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-12-18 01:45 UTC by Justin Karneges
Modified: 2009-01-23 08:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
syntax and formatting cleansing in prep for real work (37.18 KB, patch)
2008-12-18 01:47 UTC, Justin Karneges
none Details | Review
syntax and formatting cleansing in prep for real work (37.30 KB, patch)
2008-12-20 17:13 UTC, Justin Karneges
none Details | Review
more cleanup and make osxaudiosrc work (26.53 KB, patch)
2008-12-20 17:27 UTC, Justin Karneges
none Details | Review
more cleanup and make osxaudiosrc work (29.39 KB, patch)
2008-12-23 23:58 UTC, Justin Karneges
none Details | Review
combine the two patches into one, remove UNUSED stuff (55.26 KB, patch)
2009-01-02 20:22 UTC, Justin Karneges
committed Details | Review

Description Justin Karneges 2008-12-18 01:45:51 UTC
osxaudiosrc doesn't work, and the code needs cleaning in general.
Comment 1 Justin Karneges 2008-12-18 01:47:13 UTC
Created attachment 124903 [details] [review]
syntax and formatting cleansing in prep for real work
Comment 2 Michael Smith 2008-12-18 01:53:20 UTC
Note that this is a patch against songbird's version of osxaudio. Which fixes a bunch of osxaudiosink problems, but breaks osxaudiosrc (or breaks it worse?), so I haven't pushed that upstream.

Hopefully we'll be able to merge Justin and my work and get it back into gstreamer soon.
Comment 3 Justin Karneges 2008-12-20 17:13:38 UTC
Created attachment 125057 [details] [review]
syntax and formatting cleansing in prep for real work

For consistency, I've updated the osxaudio_tidy patch to match exactly what I committed into my own repository.  Note that there is one flaw in the patch: the parent of the ring buffer is specified as GST_TYPE_OSX_RING_BUFFER when it should really be GST_TYPE_RING_BUFFER.
Comment 4 Justin Karneges 2008-12-20 17:27:46 UTC
Created attachment 125058 [details] [review]
more cleanup and make osxaudiosrc work

this needs to be applied after the formatting patch.  it includes the parent type correction.
Comment 5 Justin Karneges 2008-12-23 23:58:40 UTC
Created attachment 125242 [details] [review]
more cleanup and make osxaudiosrc work

input channels should get negotiated properly now
Comment 6 Michael Smith 2009-01-02 20:04:46 UTC
Justin,

This looks pretty good - thanks for doing the work!

Can you attach a single patch (either against gst cvs or songbird svn; I don't really mind too much) combining these? It'll make merging things a bit easier for me.

Additionally, please remove all of the UNUSED() stuff. It's not done like that anywhere else; gobject style doesn't require that - so it's just extra noise.


Comment 7 Justin Karneges 2009-01-02 20:22:13 UTC
Created attachment 125661 [details] [review]
combine the two patches into one, remove UNUSED stuff
Comment 8 Michael Smith 2009-01-02 20:40:38 UTC
Landed this in cvs along with the rewrite it was based on (from songbird svn):

2009-01-02  Michael Smith <msmith@songbirdnest.com>

      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.