mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
osxaudio: use GST_IS_OSX_AUDIO_SINK in ring buffer.
This commit is contained in:
parent
efda79b084
commit
ce5246ed71
2 changed files with 6 additions and 1 deletions
|
@ -229,7 +229,10 @@ gst_osx_audio_ring_buffer_acquire (GstAudioRingBuffer * buf,
|
|||
CORE_AUDIO_FORMAT_ARGS (format));
|
||||
|
||||
osxsink = GST_OSX_AUDIO_SINK (GST_OBJECT_PARENT (buf));
|
||||
gst_audio_ring_buffer_set_channel_positions (buf, osxsink->channel_positions);
|
||||
if (GST_IS_OSX_AUDIO_SINK (osxsink)) {
|
||||
gst_audio_ring_buffer_set_channel_positions (buf,
|
||||
osxsink->channel_positions);
|
||||
}
|
||||
|
||||
buf->size = spec->segtotal * spec->segsize;
|
||||
buf->memory = g_malloc0 (buf->size);
|
||||
|
|
|
@ -63,6 +63,8 @@ G_BEGIN_DECLS
|
|||
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_OSX_AUDIO_SINK,GstOsxAudioSink))
|
||||
#define GST_OSX_AUDIO_SINK_CLASS(klass) \
|
||||
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_OSX_AUDIO_SINK,GstOsxAudioSinkClass))
|
||||
#define GST_IS_OSX_AUDIO_SINK(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_OSX_AUDIO_SINK))
|
||||
|
||||
#define GST_OSX_AUDIO_MAX_CHANNEL (9)
|
||||
|
||||
|
|
Loading…
Reference in a new issue