/third_party/gstreamer/gstplugins_good/sys/osxaudio/ |
D | gstosxcoreaudio.c | 45 gst_core_audio_init (GstCoreAudio * core_audio) in gst_core_audio_init() argument 47 core_audio->is_passthrough = FALSE; in gst_core_audio_init() 48 core_audio->device_id = kAudioDeviceUnknown; in gst_core_audio_init() 49 core_audio->is_src = FALSE; in gst_core_audio_init() 50 core_audio->audiounit = NULL; in gst_core_audio_init() 51 core_audio->cached_caps = NULL; in gst_core_audio_init() 52 core_audio->cached_caps_valid = FALSE; in gst_core_audio_init() 54 core_audio->hog_pid = -1; in gst_core_audio_init() 55 core_audio->disabled_mixing = FALSE; in gst_core_audio_init() 72 GstCoreAudio *core_audio; in _audio_unit_property_listener() local [all …]
|
D | gstosxcoreaudiohal.c | 673 GstCoreAudio *core_audio = inClientData; in _audio_stream_hardware_changed_listener() local 677 if (!gst_core_audio_audio_device_is_spdif_avail (core_audio->device_id)) { in _audio_stream_hardware_changed_listener() 679 GST_OSX_AUDIO_SINK (GST_OBJECT_PARENT (core_audio->osxbuf)); in _audio_stream_hardware_changed_listener() 691 _monitorize_spdif (GstCoreAudio * core_audio) in _monitorize_spdif() argument 703 status = AudioObjectAddPropertyListener (core_audio->device_id, in _monitorize_spdif() 705 (void *) core_audio); in _monitorize_spdif() 707 GST_ERROR_OBJECT (core_audio->osxbuf, in _monitorize_spdif() 716 _unmonitorize_spdif (GstCoreAudio * core_audio) in _unmonitorize_spdif() argument 728 status = AudioObjectRemovePropertyListener (core_audio->device_id, in _unmonitorize_spdif() 730 (void *) core_audio); in _unmonitorize_spdif() [all …]
|
D | gstosxcoreaudiocommon.c | 27 gst_core_audio_remove_render_callback (GstCoreAudio * core_audio) in gst_core_audio_remove_render_callback() argument 38 …status = AudioUnitSetProperty (core_audio->audiounit, kAudioUnitProperty_SetRenderCallback, kAudio… in gst_core_audio_remove_render_callback() 42 GST_WARNING_OBJECT (core_audio->osxbuf, in gst_core_audio_remove_render_callback() 47 status = AudioUnitRemoveRenderNotify (core_audio->audiounit, in gst_core_audio_remove_render_callback() 48 (AURenderCallback) gst_core_audio_render_notify, core_audio); in gst_core_audio_remove_render_callback() 51 GST_WARNING_OBJECT (core_audio->osxbuf, in gst_core_audio_remove_render_callback() 56 core_audio->io_proc_needs_deactivation = FALSE; in gst_core_audio_remove_render_callback() 57 core_audio->io_proc_active = FALSE; in gst_core_audio_remove_render_callback() 61 gst_core_audio_render_notify (GstCoreAudio * core_audio, in gst_core_audio_render_notify() argument 74 if (core_audio->io_proc_needs_deactivation) { in gst_core_audio_render_notify() [all …]
|
D | gstosxcoreaudioremoteio.c | 26 gst_core_audio_open_impl (GstCoreAudio * core_audio) in gst_core_audio_open_impl() argument 28 return gst_core_audio_open_device (core_audio, kAudioUnitSubType_RemoteIO, in gst_core_audio_open_impl() 33 gst_core_audio_start_processing_impl (GstCoreAudio * core_audio) in gst_core_audio_start_processing_impl() argument 35 return gst_core_audio_io_proc_start (core_audio); in gst_core_audio_start_processing_impl() 39 gst_core_audio_pause_processing_impl (GstCoreAudio * core_audio) in gst_core_audio_pause_processing_impl() argument 41 GST_DEBUG_OBJECT (core_audio, in gst_core_audio_pause_processing_impl() 43 core_audio->element->io_proc, (gulong) core_audio->device_id); in gst_core_audio_pause_processing_impl() 45 if (core_audio->io_proc_active) { in gst_core_audio_pause_processing_impl() 50 core_audio->io_proc_needs_deactivation = TRUE; in gst_core_audio_pause_processing_impl() 56 gst_core_audio_stop_processing_impl (GstCoreAudio * core_audio) in gst_core_audio_stop_processing_impl() argument [all …]
|
D | gstosxcoreaudio.h | 73 #define CORE_AUDIO_INNER_SCOPE(core_audio) ((core_audio)->is_src ? kAudioUnitScope_Output : kAudioU… argument 74 #define CORE_AUDIO_OUTER_SCOPE(core_audio) ((core_audio)->is_src ? kAudioUnitScope_Input : kAudioUn… argument 75 #define CORE_AUDIO_ELEMENT(core_audio) ((core_audio)->is_src ? 1 : 0) argument 123 gboolean gst_core_audio_open (GstCoreAudio *core_audio); 125 gboolean gst_core_audio_close (GstCoreAudio *core_audio); 127 gboolean gst_core_audio_initialize (GstCoreAudio *core_audio, 132 void gst_core_audio_uninitialize (GstCoreAudio *core_audio); 134 gboolean gst_core_audio_start_processing (GstCoreAudio *core_audio); 136 gboolean gst_core_audio_pause_processing (GstCoreAudio *core_audio); 138 gboolean gst_core_audio_stop_processing (GstCoreAudio *core_audio); [all …]
|
D | gstosxcoreaudiocommon.h | 33 gboolean gst_core_audio_bind_device (GstCoreAudio *core_audio); 37 void gst_core_audio_remove_render_callback (GstCoreAudio * core_audio); 39 gboolean gst_core_audio_io_proc_start (GstCoreAudio * core_audio); 41 gboolean gst_core_audio_io_proc_stop (GstCoreAudio * core_audio); 47 gboolean gst_core_audio_set_format (GstCoreAudio * core_audio, 50 gboolean gst_core_audio_set_channel_layout (GstCoreAudio * core_audio, 53 gboolean gst_core_audio_open_device (GstCoreAudio *core_audio, 57 OSStatus gst_core_audio_render_notify (GstCoreAudio * core_audio,
|
D | gstosxaudiosrc.c | 224 if (ringbuffer->core_audio->device_id != osxsrc->device_id) { in gst_osx_audio_src_change_state() 225 osxsrc->device_id = ringbuffer->core_audio->device_id; in gst_osx_audio_src_change_state() 264 if (osxbuf->core_audio->cached_caps_valid) { in gst_osx_audio_src_get_caps() 266 caps = gst_caps_ref (osxbuf->core_audio->cached_caps); in gst_osx_audio_src_get_caps() 275 caps = gst_core_audio_probe_caps (osxbuf->core_audio, template_caps); in gst_osx_audio_src_get_caps() 276 gst_caps_replace (&osxbuf->core_audio->cached_caps, caps); in gst_osx_audio_src_get_caps() 315 ringbuffer->core_audio->element = in gst_osx_audio_src_create_ringbuffer() 317 ringbuffer->core_audio->is_src = TRUE; in gst_osx_audio_src_create_ringbuffer() 323 if (ringbuffer->core_audio->device_id != osxsrc->device_id) in gst_osx_audio_src_create_ringbuffer() 324 ringbuffer->core_audio->device_id = osxsrc->device_id; in gst_osx_audio_src_create_ringbuffer() [all …]
|
D | gstosxaudioringbuffer.c | 124 ringbuffer->core_audio = gst_core_audio_new (GST_OBJECT (ringbuffer)); in gst_osx_audio_ring_buffer_init() 134 if (osxbuf->core_audio) { in gst_osx_audio_ring_buffer_dispose() 135 g_object_unref (osxbuf->core_audio); in gst_osx_audio_ring_buffer_dispose() 136 osxbuf->core_audio = NULL; in gst_osx_audio_ring_buffer_dispose() 147 if (!gst_core_audio_select_device (osxbuf->core_audio)) { in gst_osx_audio_ring_buffer_open_device() 153 if (!gst_core_audio_open (osxbuf->core_audio)) { in gst_osx_audio_ring_buffer_open_device() 168 return gst_core_audio_close (osxbuf->core_audio); in gst_osx_audio_ring_buffer_close_device() 241 ret = gst_core_audio_initialize (osxbuf->core_audio, format, spec->caps, in gst_osx_audio_ring_buffer_acquire() 262 gst_core_audio_uninitialize (osxbuf->core_audio); in gst_osx_audio_ring_buffer_release() 278 return gst_core_audio_start_processing (osxbuf->core_audio); in gst_osx_audio_ring_buffer_start() [all …]
|
D | gstosxaudiodeviceprovider.c | 46 GstCoreAudio * core_audio); 79 GstCoreAudio *core_audio; in gst_osx_audio_device_provider_probe_device() local 81 core_audio = gst_core_audio_new (NULL); in gst_osx_audio_device_provider_probe_device() 82 core_audio->is_src = type == GST_OSX_AUDIO_DEVICE_TYPE_SOURCE ? TRUE : FALSE; in gst_osx_audio_device_provider_probe_device() 83 core_audio->device_id = device_id; in gst_osx_audio_device_provider_probe_device() 85 if (!gst_core_audio_open (core_audio)) { in gst_osx_audio_device_provider_probe_device() 90 device = gst_osx_audio_device_new (device_id, device_name, type, core_audio); in gst_osx_audio_device_provider_probe_device() 92 gst_core_audio_close (core_audio); in gst_osx_audio_device_provider_probe_device() 95 g_object_unref (core_audio); in gst_osx_audio_device_provider_probe_device() 357 GstOsxAudioDeviceType type, GstCoreAudio * core_audio) in gst_osx_audio_device_new() argument [all …]
|
D | gstosxaudiosink.c | 256 if (ringbuffer->core_audio->device_id != osxsink->device_id) { in gst_osx_audio_sink_change_state() 257 osxsink->device_id = ringbuffer->core_audio->device_id; in gst_osx_audio_sink_change_state() 340 if (osxbuf->core_audio->cached_caps_valid) { in gst_osx_audio_sink_getcaps() 342 caps = gst_caps_ref (osxbuf->core_audio->cached_caps); in gst_osx_audio_sink_getcaps() 351 caps = gst_core_audio_probe_caps (osxbuf->core_audio, template_caps); in gst_osx_audio_sink_getcaps() 352 gst_caps_replace (&osxbuf->core_audio->cached_caps, caps); in gst_osx_audio_sink_getcaps() 494 ringbuffer->core_audio->element = in gst_osx_audio_sink_create_ringbuffer() 496 ringbuffer->core_audio->is_src = FALSE; in gst_osx_audio_sink_create_ringbuffer() 502 if (ringbuffer->core_audio->device_id != osxsink->device_id) in gst_osx_audio_sink_create_ringbuffer() 503 ringbuffer->core_audio->device_id = osxsink->device_id; in gst_osx_audio_sink_create_ringbuffer() [all …]
|
D | gstosxaudioringbuffer.h | 82 GstCoreAudio *core_audio; member
|