summaryrefslogtreecommitdiff
path: root/include/astal/wireplumber/wp.h
diff options
context:
space:
mode:
authorkotontrion <[email protected]>2024-08-20 11:50:05 +0200
committerkotontrion <[email protected]>2024-08-20 11:50:05 +0200
commit7706d24965a268b6075d3fb5557ef6b96c889483 (patch)
tree2a0a544c6b2e67d5e218d68c76c3282ce84889b2 /include/astal/wireplumber/wp.h
parent99dc6d3fbc99b955882c1d471c15e077cb44a45a (diff)
add property for linear or cubic volume scale
Diffstat (limited to 'include/astal/wireplumber/wp.h')
-rw-r--r--include/astal/wireplumber/wp.h17
1 files changed, 15 insertions, 2 deletions
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