diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/astal/wireplumber/audio.h | 3 | ||||
-rw-r--r-- | include/astal/wireplumber/video.h | 3 | ||||
-rw-r--r-- | include/astal/wireplumber/wp.h | 17 | ||||
-rw-r--r-- | include/private/endpoint-private.h | 7 |
4 files changed, 20 insertions, 10 deletions
diff --git a/include/astal/wireplumber/audio.h b/include/astal/wireplumber/audio.h index 2d54727..c1176e2 100644 --- a/include/astal/wireplumber/audio.h +++ b/include/astal/wireplumber/audio.h @@ -28,9 +28,6 @@ GList *astal_wp_audio_get_recorders(AstalWpAudio *self); GList *astal_wp_audio_get_streams(AstalWpAudio *self); GList *astal_wp_audio_get_devices(AstalWpAudio *self); -AstalWpAudio *astal_wp_audio_get_default(); -AstalWpAudio *astal_wp_get_default_audio(); - G_END_DECLS #endif // !ASTAL_WIREPLUMBER_AUDIO_H diff --git a/include/astal/wireplumber/video.h b/include/astal/wireplumber/video.h index 8b17e31..3c4ae74 100644 --- a/include/astal/wireplumber/video.h +++ b/include/astal/wireplumber/video.h @@ -24,9 +24,6 @@ GList *astal_wp_video_get_recorders(AstalWpVideo *self); GList *astal_wp_video_get_streams(AstalWpVideo *self); GList *astal_wp_video_get_devices(AstalWpVideo *self); -AstalWpVideo *astal_wp_video_get_default(); -AstalWpVideo *astal_wp_get_default_video(); - G_END_DECLS #endif // !ASTAL_WIREPLUMBER_VIDEO_H diff --git a/include/astal/wireplumber/wp.h b/include/astal/wireplumber/wp.h index d054bee..1ff341c 100644 --- a/include/astal/wireplumber/wp.h +++ b/include/astal/wireplumber/wp.h @@ -10,6 +10,13 @@ G_BEGIN_DECLS +#define ASTAL_WP_TYPE_SCALE (astal_wp_scale_get_type()) + +typedef enum { + ASTAL_WP_SCALE_LINEAR, + ASTAL_WP_SCALE_CUBIC, +} AstalWpScale; + #define ASTAL_WP_TYPE_WP (astal_wp_wp_get_type()) G_DECLARE_FINAL_TYPE(AstalWpWp, astal_wp_wp, ASTAL_WP, WP, GObject) @@ -17,8 +24,8 @@ G_DECLARE_FINAL_TYPE(AstalWpWp, astal_wp_wp, ASTAL_WP, WP, GObject) AstalWpWp* astal_wp_wp_get_default(); AstalWpWp* astal_wp_get_default_wp(); -AstalWpAudio* astal_wp_wp_get_audio(); -AstalWpVideo* astal_wp_wp_get_video(); +AstalWpAudio* astal_wp_wp_get_audio(AstalWpWp* self); +AstalWpVideo* astal_wp_wp_get_video(AstalWpWp* self); AstalWpEndpoint* astal_wp_wp_get_endpoint(AstalWpWp* self, guint id); GList* astal_wp_wp_get_endpoints(AstalWpWp* self); @@ -29,6 +36,12 @@ GList* astal_wp_wp_get_devices(AstalWpWp* self); AstalWpEndpoint* astal_wp_wp_get_default_speaker(AstalWpWp* self); AstalWpEndpoint* astal_wp_wp_get_default_microphone(AstalWpWp* self); +AstalWpScale astal_wp_wp_get_scale(AstalWpWp* self); +void astal_wp_wp_set_scale(AstalWpWp* self, AstalWpScale scale); + +AstalWpVideo* astal_wp_video_new(AstalWpWp* wp); +AstalWpAudio* astal_wp_audio_new(AstalWpWp* wp); + G_END_DECLS #endif // !ASTAL_WIREPLUMBER_H diff --git a/include/private/endpoint-private.h b/include/private/endpoint-private.h index 171df3b..7431c78 100644 --- a/include/private/endpoint-private.h +++ b/include/private/endpoint-private.h @@ -5,12 +5,15 @@ #include <wp/wp.h> #include "endpoint.h" +#include "wp.h" G_BEGIN_DECLS -AstalWpEndpoint *astal_wp_endpoint_create(WpNode *node, WpPlugin *mixer, WpPlugin *defaults); +AstalWpEndpoint *astal_wp_endpoint_create(WpNode *node, WpPlugin *mixer, WpPlugin *defaults, + AstalWpWp *wp); AstalWpEndpoint *astal_wp_endpoint_init_as_default(AstalWpEndpoint *self, WpPlugin *mixer, - WpPlugin *defaults, AstalWpMediaClass type); + WpPlugin *defaults, AstalWpMediaClass type, + AstalWpWp *wp); void astal_wp_endpoint_update_default(AstalWpEndpoint *self, gboolean is_default); void astal_wp_endpoint_update_volume(AstalWpEndpoint *self); |