diff options
author | kotontrion <[email protected]> | 2024-07-18 17:43:56 +0200 |
---|---|---|
committer | kotontrion <[email protected]> | 2024-07-18 17:43:56 +0200 |
commit | 9eb113163187e1eec0d2e0ac763cd9eeb45cc9ae (patch) | |
tree | 71a9cc11c732ef09311c262959b0b2035b792333 /include/wireplumber/endpoint.h | |
parent | 35cd0fb43d30be311cfdfca05f8a6d98d844d284 (diff) |
add Audio object and default nodes api
Diffstat (limited to 'include/wireplumber/endpoint.h')
-rw-r--r-- | include/wireplumber/endpoint.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/wireplumber/endpoint.h b/include/wireplumber/endpoint.h index 354244e..269551b 100644 --- a/include/wireplumber/endpoint.h +++ b/include/wireplumber/endpoint.h @@ -9,9 +9,26 @@ G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(AstalWpEndpoint, astal_wp_endpoint, ASTAL_WP, ENDPOINT, GObject) +#define ASTAL_WP_TYPE_MEDIA_CLASS (astal_wp_media_class_get_type()) + +typedef enum { + ASTAL_WP_MEDIA_CLASS_AUDIO_MICROPHONE, + ASTAL_WP_MEDIA_CLASS_AUDIO_SPEAKER, + ASTAL_WP_MEDIA_CLASS_AUDIO_RECORDER, + ASTAL_WP_MEDIA_CLASS_AUDIO_STREAM, +} AstalWpMediaClass; + void astal_wp_endpoint_update_volume(AstalWpEndpoint *self); void astal_wp_endpoint_set_volume(AstalWpEndpoint *self, gdouble volume); void astal_wp_endpoint_set_mute(AstalWpEndpoint *self, gboolean mute); +gboolean astal_wp_endpoint_get_is_default(AstalWpEndpoint *self); + +AstalWpMediaClass astal_wp_endpoint_get_media_class(AstalWpEndpoint *self); +guint astal_wp_endpoint_get_id(AstalWpEndpoint *self); +gboolean astal_wp_endpoint_get_mute(AstalWpEndpoint *self); +gdouble astal_wp_endpoint_get_volume(AstalWpEndpoint *self); +const gchar *astal_wp_endpoint_get_description(AstalWpEndpoint *self); +void astal_wp_endpoint_set_is_default(AstalWpEndpoint *self, gboolean is_default); G_END_DECLS |