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/audio.h | |
parent | 35cd0fb43d30be311cfdfca05f8a6d98d844d284 (diff) |
add Audio object and default nodes api
Diffstat (limited to 'include/wireplumber/audio.h')
-rw-r--r-- | include/wireplumber/audio.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/wireplumber/audio.h b/include/wireplumber/audio.h new file mode 100644 index 0000000..0e59937 --- /dev/null +++ b/include/wireplumber/audio.h @@ -0,0 +1,30 @@ +#ifndef ASTAL_WIREPLUMBER_AUDIO_H +#define ASTAL_WIREPLUMBER_AUDIO_H + +#include <glib-object.h> + +#include "endpoint.h" + +G_BEGIN_DECLS + +#define ASTAL_WP_TYPE_AUDIO (astal_wp_audio_get_type()) + +G_DECLARE_FINAL_TYPE(AstalWpAudio, astal_wp_audio, ASTAL_WP, AUDIO, GObject) + +AstalWpEndpoint *astal_wp_audio_get_speaker(AstalWpAudio *self, guint id); +AstalWpEndpoint *astal_wp_audio_get_microphone(AstalWpAudio *self, guint id); +AstalWpEndpoint *astal_wp_audio_get_recorder(AstalWpAudio *self, guint id); +AstalWpEndpoint *astal_wp_audio_get_stream(AstalWpAudio *self, guint id); +AstalWpEndpoint *astal_wp_audio_get_endpoint(AstalWpAudio *self, guint id); + +GList *astal_wp_audio_get_microphones(AstalWpAudio *self); +GList *astal_wp_audio_get_speakers(AstalWpAudio *self); +GList *astal_wp_audio_get_recorders(AstalWpAudio *self); +GList *astal_wp_audio_get_streams(AstalWpAudio *self); + +AstalWpAudio *astal_wp_audio_get_default(); +AstalWpAudio *astal_wp_get_default_audio(); + +G_END_DECLS + +#endif // !ASTAL_WIREPLUMBER_AUDIO_H |