| 1 | /* GSequencer - Advanced GTK Sequencer |
| 2 | * Copyright (C) 2005-2023 Joël Krähemann |
| 3 | * |
| 4 | * This file is part of GSequencer. |
| 5 | * |
| 6 | * GSequencer is free software: you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation, either version 3 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * GSequencer is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with GSequencer. If not, see <http://www.gnu.org/licenses/>. |
| 18 | */ |
| 19 | |
| 20 | #ifndef __AGS_GSTREAMER_PORT_H__ |
| 21 | #define __AGS_GSTREAMER_PORT_H__cxx . . $ `ags/audio/gstreamer/ags_gstreamer_port.h:21:9`! |
| 22 | |
| 23 | #include <glib.h> |
| 24 | #include <glib-object.h> |
| 25 | |
| 26 | #include <ags/ags_api_config.h>cxx . . $ `<file>/ags/ags_api_config.h`/ |
| 27 | |
| 28 | #include <ags/libags.h>cxx . . $ `<file>/ags/libags.h`/ |
| 29 | |
| 30 | G_BEGIN_DECLScxx . . $ `<external>/12741050725406041920/gmacros.h:947:9`! |
| 31 | |
| 32 | #define AGS_TYPE_GSTREAMER_PORTcxx . . $ `ags/audio/gstreamer/ags_gstreamer_port.h:32:9`! (ags_gstreamer_port_get_type()) |
| 33 | #define AGS_GSTREAMER_PORTcxx . . $ `ags/audio/gstreamer/ags_gstreamer_port.h:33:9`!(obj) (G_TYPE_CHECK_INSTANCE_CASTcxx . . $ `<external>/9567554376676449156/gtype.h:528:9`!((obj), AGS_TYPE_GSTREAMER_PORTcxx . . $ `ags/audio/gstreamer/ags_gstreamer_port.h:32:9`!, AgsGstreamerPort)) |
| 34 | #define AGS_GSTREAMER_PORT_CLASScxx . . $ `ags/audio/gstreamer/ags_gstreamer_port.h:34:9`!(class) (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_GSTREAMER_PORT, AgsGstreamerPort)) |
| 35 | #define AGS_IS_GSTREAMER_PORTcxx . . $ `ags/audio/gstreamer/ags_gstreamer_port.h:35:9`!(obj) (G_TYPE_CHECK_INSTANCE_TYPEcxx . . $ `<external>/9567554376676449156/gtype.h:541:9`! ((obj), AGS_TYPE_GSTREAMER_PORTcxx . . $ `ags/audio/gstreamer/ags_gstreamer_port.h:32:9`!)) |
| 36 | #define AGS_IS_GSTREAMER_PORT_CLASScxx . . $ `ags/audio/gstreamer/ags_gstreamer_port.h:36:9`!(class) (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_GSTREAMER_PORT)) |
| 37 | #define AGS_GSTREAMER_PORT_GET_CLASScxx . . $ `ags/audio/gstreamer/ags_gstreamer_port.h:37:9`!(obj) (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_GSTREAMER_PORT, AgsGstreamerPortClass)) |
| 38 | |
| 39 | #define AGS_GSTREAMER_PORT_GET_OBJ_MUTEXcxx . . $ `ags/audio/gstreamer/ags_gstreamer_port.h:39:9`!(obj) (&(((AgsGstreamerPort *) obj)->obj_mutex)) |
| 40 | |
| 41 | #define AGS_GSTREAMER_PORT_DEFAULT_CACHE_BUFFER_SIZEcxx . . $ `ags/audio/gstreamer/ags_gstreamer_port.h:41:9`! (4096) |
| 42 | |
| 43 | typedef struct _AgsGstreamerPortcxx . . $ _AgsGstreamerPort# AgsGstreamerPortcxx . . $ AgsGstreamerPort#; |
| 44 | typedef struct _AgsGstreamerPortClasscxx . . $ _AgsGstreamerPortClass# AgsGstreamerPortClasscxx . . $ AgsGstreamerPortClass#; |
| 45 | |
| 46 | /** |
| 47 | * AgsGstreamerPortFlags: |
| 48 | * @AGS_GSTREAMER_PORT_REGISTERED: the port was registered |
| 49 | * @AGS_GSTREAMER_PORT_IS_AUDIO: the port provides audio data |
| 50 | * @AGS_GSTREAMER_PORT_IS_MIDI: the port provides midi data |
| 51 | * @AGS_GSTREAMER_PORT_IS_OUTPUT: the port does output |
| 52 | * @AGS_GSTREAMER_PORT_IS_INPUT: the port does input |
| 53 | * |
| 54 | * Enum values to control the behavior or indicate internal state of #AgsGstreamerPort by |
| 55 | * enable/disable as flags. |
| 56 | */ |
| 57 | typedef enumcxx . . $ $anonymous_type_8953d38e9817f2be_0#{ |
| 58 | AGS_GSTREAMER_PORT_REGISTEREDcxx . . $ AGS_GSTREAMER_PORT_REGISTERED. = 1, |
| 59 | AGS_GSTREAMER_PORT_IS_AUDIOcxx . . $ AGS_GSTREAMER_PORT_IS_AUDIO. = 1 << 1, |
| 60 | AGS_GSTREAMER_PORT_IS_MIDIcxx . . $ AGS_GSTREAMER_PORT_IS_MIDI. = 1 << 2, |
| 61 | AGS_GSTREAMER_PORT_IS_OUTPUTcxx . . $ AGS_GSTREAMER_PORT_IS_OUTPUT. = 1 << 3, |
| 62 | AGS_GSTREAMER_PORT_IS_INPUTcxx . . $ AGS_GSTREAMER_PORT_IS_INPUT. = 1 << 4, |
| 63 | }AgsGstreamerPortFlagscxx . . $ AgsGstreamerPortFlags#; |
| 64 | |
| 65 | struct _AgsGstreamerPortcxx . . $ _AgsGstreamerPort# |
| 66 | { |
| 67 | GObjectcxx . . $ GObject# gobjectcxx . . $ _AgsGstreamerPort#gobject.; |
| 68 | |
| 69 | AgsGstreamerPortFlagscxx . . $ AgsGstreamerPortFlags# flagscxx . . $ _AgsGstreamerPort#flags.; |
| 70 | AgsConnectableFlagscxx . . $ AgsConnectableFlags# connectable_flagscxx . . $ _AgsGstreamerPort#connectable_flags.; |
| 71 | |
| 72 | GRecMutexcxx . . $ GRecMutex# obj_mutexcxx . . $ _AgsGstreamerPort#obj_mutex.; |
| 73 | |
| 74 | GObjectcxx . . $ GObject# *gstreamer_clientcxx . . $ _AgsGstreamerPort#gstreamer_client.; |
| 75 | |
| 76 | AgsUUIDcxx . . $ AgsUUID# *uuidcxx . . $ _AgsGstreamerPort#uuid.; |
| 77 | |
| 78 | GObjectcxx . . $ GObject# *gstreamer_devoutcxx . . $ _AgsGstreamerPort#gstreamer_devout.; |
| 79 | GObjectcxx . . $ GObject# *gstreamer_devincxx . . $ _AgsGstreamerPort#gstreamer_devin.; |
| 80 | |
| 81 | gcharcxx . . $ gchar# *port_uuidcxx . . $ _AgsGstreamerPort#port_uuid.; |
| 82 | gcharcxx . . $ gchar# *port_namecxx . . $ _AgsGstreamerPort#port_name.; |
| 83 | |
| 84 | guintcxx . . $ guint# pcm_channelscxx . . $ _AgsGstreamerPort#pcm_channels.; |
| 85 | |
| 86 | guintcxx . . $ guint# sampleratecxx . . $ _AgsGstreamerPort#samplerate.; |
| 87 | guintcxx . . $ guint# buffer_sizecxx . . $ _AgsGstreamerPort#buffer_size.; |
| 88 | AgsSoundcardFormatcxx . . $ AgsSoundcardFormat# formatcxx . . $ _AgsGstreamerPort#format.; |
| 89 | |
| 90 | gbooleancxx . . $ gboolean# use_cachecxx . . $ _AgsGstreamerPort#use_cache.; |
| 91 | guintcxx . . $ guint# cache_buffer_sizecxx . . $ _AgsGstreamerPort#cache_buffer_size.; |
| 92 | |
| 93 | guintcxx . . $ guint# current_cachecxx . . $ _AgsGstreamerPort#current_cache.; |
| 94 | guintcxx . . $ guint# completed_cachecxx . . $ _AgsGstreamerPort#completed_cache.; |
| 95 | guintcxx . . $ guint# cache_offsetcxx . . $ _AgsGstreamerPort#cache_offset.; |
| 96 | void **cachecxx . . $ _AgsGstreamerPort#cache.; |
| 97 | |
| 98 | void *empty_buffercxx . . $ _AgsGstreamerPort#empty_buffer.; |
| 99 | |
| 100 | gbooleancxx . . $ gboolean# is_emptycxx . . $ _AgsGstreamerPort#is_empty.; |
| 101 | gintcxx . . $ gint# underflowcxx . . $ _AgsGstreamerPort#underflow.; |
| 102 | gbooleancxx . . $ gboolean# restartcxx . . $ _AgsGstreamerPort#restart.; |
| 103 | |
| 104 | guintcxx . . $ guint# nth_empty_buffercxx . . $ _AgsGstreamerPort#nth_empty_buffer.; |
| 105 | |
| 106 | guintcxx . . $ guint# queuedcxx . . $ _AgsGstreamerPort#queued.; |
| 107 | }; |
| 108 | |
| 109 | struct _AgsGstreamerPortClasscxx . . $ _AgsGstreamerPortClass# |
| 110 | { |
| 111 | GObjectClasscxx . . $ GObjectClass# gobjectcxx . . $ _AgsGstreamerPortClass#gobject.; |
| 112 | }; |
| 113 | |
| 114 | GTypecxx . . $ GType# ags_gstreamer_port_get_typecxx . . $ ags_gstreamer_port_get_type(7b3bcd0168edf51f).(); |
| 115 | GTypecxx . . $ GType# ags_gstreamer_port_flags_get_typecxx . . $ ags_gstreamer_port_flags_get_type(7b3bcd0168edf51f).(); |
| 116 | |
| 117 | gbooleancxx . . $ gboolean# ags_gstreamer_port_test_flagscxx . . $ ags_gstreamer_port_test_flags(87f0034418a81eec).(AgsGstreamerPortcxx . . $ AgsGstreamerPort# *gstreamer_port, AgsGstreamerPortFlagscxx . . $ AgsGstreamerPortFlags# flags); |
| 118 | void ags_gstreamer_port_set_flagscxx . . $ ags_gstreamer_port_set_flags(a4047b2c753bf184).(AgsGstreamerPortcxx . . $ AgsGstreamerPort# *gstreamer_port, AgsGstreamerPortFlagscxx . . $ AgsGstreamerPortFlags# flags); |
| 119 | void ags_gstreamer_port_unset_flagscxx . . $ ags_gstreamer_port_unset_flags(a4047b2c753bf184).(AgsGstreamerPortcxx . . $ AgsGstreamerPort# *gstreamer_port, AgsGstreamerPortFlagscxx . . $ AgsGstreamerPortFlags# flags); |
| 120 | |
| 121 | GListcxx . . $ GList#* ags_gstreamer_port_findcxx . . $ ags_gstreamer_port_find(8391bc43579f3dff).(GListcxx . . $ GList# *gstreamer_port, |
| 122 | gcharcxx . . $ gchar# *port_name); |
| 123 | |
| 124 | void ags_gstreamer_port_registercxx . . $ ags_gstreamer_port_register(98e37ec766b9b4).(AgsGstreamerPortcxx . . $ AgsGstreamerPort# *gstreamer_port, |
| 125 | gcharcxx . . $ gchar# *port_name, |
| 126 | gbooleancxx . . $ gboolean# is_audio, gbooleancxx . . $ gboolean# is_midi, |
| 127 | gbooleancxx . . $ gboolean# is_output); |
| 128 | void ags_gstreamer_port_unregistercxx . . $ ags_gstreamer_port_unregister(eb4ea84e275a6851).(AgsGstreamerPortcxx . . $ AgsGstreamerPort# *gstreamer_port); |
| 129 | |
| 130 | guintcxx . . $ guint# ags_gstreamer_port_get_fixed_sizecxx . . $ ags_gstreamer_port_get_fixed_size(f8670ea2e46aeb2c).(AgsGstreamerPortcxx . . $ AgsGstreamerPort# *gstreamer_port); |
| 131 | |
| 132 | void ags_gstreamer_port_set_sampleratecxx . . $ ags_gstreamer_port_set_samplerate(ccf728f1ce92bc6e).(AgsGstreamerPortcxx . . $ AgsGstreamerPort# *gstreamer_port, |
| 133 | guintcxx . . $ guint# samplerate); |
| 134 | void ags_gstreamer_port_set_pcm_channelscxx . . $ ags_gstreamer_port_set_pcm_channels(ccf728f1ce92bc6e).(AgsGstreamerPortcxx . . $ AgsGstreamerPort# *gstreamer_port, |
| 135 | guintcxx . . $ guint# pcm_channels); |
| 136 | void ags_gstreamer_port_set_buffer_sizecxx . . $ ags_gstreamer_port_set_buffer_size(ccf728f1ce92bc6e).(AgsGstreamerPortcxx . . $ AgsGstreamerPort# *gstreamer_port, |
| 137 | guintcxx . . $ guint# buffer_size); |
| 138 | void ags_gstreamer_port_set_formatcxx . . $ ags_gstreamer_port_set_format(ab06033e96f377e8).(AgsGstreamerPortcxx . . $ AgsGstreamerPort# *gstreamer_port, |
| 139 | AgsSoundcardFormatcxx . . $ AgsSoundcardFormat# format); |
| 140 | |
| 141 | void ags_gstreamer_port_set_cache_buffer_sizecxx . . $ ags_gstreamer_port_set_cache_buffer_size(ccf728f1ce92bc6e).(AgsGstreamerPortcxx . . $ AgsGstreamerPort# *gstreamer_port, |
| 142 | guintcxx . . $ guint# cache_buffer_size); |
| 143 | |
| 144 | guintcxx . . $ guint# ags_gstreamer_port_get_latencycxx . . $ ags_gstreamer_port_get_latency(f8670ea2e46aeb2c).(AgsGstreamerPortcxx . . $ AgsGstreamerPort# *gstreamer_port); |
| 145 | |
| 146 | AgsGstreamerPortcxx . . $ AgsGstreamerPort#* ags_gstreamer_port_newcxx . . $ ags_gstreamer_port_new(28f36f40ca7b99f6).(GObjectcxx . . $ GObject# *gstreamer_client); |
| 147 | |
| 148 | G_END_DECLScxx . . $ `<external>/12741050725406041920/gmacros.h:948:9`! |
| 149 | |
| 150 | #endif /*__AGS_GSTREAMER_PORT_H__*/ |