|
Packit |
8ff292 |
/*
|
|
Packit |
8ff292 |
* GStreamer
|
|
Packit |
8ff292 |
* Copyright (C) 2012-2013 Fluendo S.A. <support@fluendo.com>
|
|
Packit |
8ff292 |
* Authors: Josep Torra Vallès <josep@fluendo.com>
|
|
Packit |
8ff292 |
* Andoni Morales Alastruey <amorales@fluendo.com>
|
|
Packit |
8ff292 |
*
|
|
Packit |
8ff292 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
8ff292 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
8ff292 |
* License as published by the Free Software Foundation; either
|
|
Packit |
8ff292 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
8ff292 |
*
|
|
Packit |
8ff292 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
8ff292 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
8ff292 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
8ff292 |
* Library General Public License for more details.
|
|
Packit |
8ff292 |
*
|
|
Packit |
8ff292 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
8ff292 |
* License along with this library; if not, write to the
|
|
Packit |
8ff292 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Packit |
8ff292 |
* Boston, MA 02111-1307, USA.
|
|
Packit |
8ff292 |
*
|
|
Packit |
8ff292 |
*/
|
|
Packit |
8ff292 |
|
|
Packit |
8ff292 |
#include "gstosxcoreaudio.h"
|
|
Packit |
8ff292 |
#include <gst/audio/audio-channels.h>
|
|
Packit |
8ff292 |
|
|
Packit |
8ff292 |
typedef struct
|
|
Packit |
8ff292 |
{
|
|
Packit |
8ff292 |
GMutex lock;
|
|
Packit |
8ff292 |
GCond cond;
|
|
Packit |
8ff292 |
} PropertyMutex;
|
|
Packit |
8ff292 |
|
|
Packit |
8ff292 |
gboolean gst_core_audio_bind_device (GstCoreAudio *core_audio);
|
|
Packit |
8ff292 |
|
|
Packit |
8ff292 |
void gst_core_audio_dump_channel_layout (AudioChannelLayout * channel_layout);
|
|
Packit |
8ff292 |
|
|
Packit |
8ff292 |
void gst_core_audio_remove_render_callback (GstCoreAudio * core_audio);
|
|
Packit |
8ff292 |
|
|
Packit |
8ff292 |
gboolean gst_core_audio_io_proc_start (GstCoreAudio * core_audio);
|
|
Packit |
8ff292 |
|
|
Packit |
8ff292 |
gboolean gst_core_audio_io_proc_stop (GstCoreAudio * core_audio);
|
|
Packit |
8ff292 |
|
|
Packit |
8ff292 |
AudioBufferList * buffer_list_alloc (UInt32 channels, UInt32 size, gboolean interleaved);
|
|
Packit |
8ff292 |
|
|
Packit |
8ff292 |
void buffer_list_free (AudioBufferList * list);
|
|
Packit |
8ff292 |
|
|
Packit |
8ff292 |
gboolean gst_core_audio_set_format (GstCoreAudio * core_audio,
|
|
Packit |
8ff292 |
AudioStreamBasicDescription format);
|
|
Packit |
8ff292 |
|
|
Packit |
8ff292 |
gboolean gst_core_audio_set_channel_layout (GstCoreAudio * core_audio,
|
|
Packit |
8ff292 |
gint channels, GstCaps * caps);
|
|
Packit |
8ff292 |
|
|
Packit |
8ff292 |
gboolean gst_core_audio_open_device (GstCoreAudio *core_audio,
|
|
Packit |
8ff292 |
OSType sub_type,
|
|
Packit |
8ff292 |
const gchar *adesc);
|
|
Packit |
8ff292 |
|
|
Packit |
8ff292 |
OSStatus gst_core_audio_render_notify (GstCoreAudio * core_audio,
|
|
Packit |
8ff292 |
AudioUnitRenderActionFlags * ioActionFlags,
|
|
Packit |
8ff292 |
const AudioTimeStamp * inTimeStamp,
|
|
Packit |
8ff292 |
unsigned int inBusNumber,
|
|
Packit |
8ff292 |
unsigned int inNumberFrames,
|
|
Packit |
8ff292 |
AudioBufferList * ioData);
|
|
Packit |
8ff292 |
|
|
Packit |
8ff292 |
AudioChannelLabel gst_audio_channel_position_to_core_audio (GstAudioChannelPosition position, int channel);
|
|
Packit |
8ff292 |
|
|
Packit |
8ff292 |
GstAudioChannelPosition gst_core_audio_channel_label_to_gst (AudioChannelLabel label, int channel, gboolean warn);
|