[Bug 796919] osxaudiosink does not work on iOS 12

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Aug 24 17:11:15 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=796919

--- Comment #9 from Nicola <lists at svrinformatica.it> ---
I haven't updated to iOS 12 yet, based on the info you provided by email I'll
try something like this:

if (layout->mChannelLayoutTag == kAudioChannelLayoutTag_Stereo){
   if (pos) {
    pos[0] = GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT;
    pos[1] = GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT;
   }
   *channels = 2;
   *channel_mask = GST_AUDIO_CHANNEL_POSITION_MASK (FRONT_LEFT) |
          GST_AUDIO_CHANNEL_POSITION_MASK (FRONT_RIGHT);
   return TRUE;
}

this code should be added here:

https://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/sys/osxaudio/gstosxcoreaudio.c#n342

before 

if (layout->mChannelLayoutTag !=
      kAudioChannelLayoutTag_UseChannelDescriptions) {

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list