diff options
Diffstat (limited to 'include/astal')
-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 |
3 files changed, 15 insertions, 8 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 |