Debian Codegraph @

src/cad-pulse.h

raw
1 /*
2 * Copyright (C) 2018, 2019 Purism SPC
3 * Copyright (C) 2020 Arnaud Ferraris <[email protected]>
4 *
5 * SPDX-License-Identifier: GPL-3.0-or-later
6 */
7
8 #pragma once
9
10 #include "libcallaudio.h"
11 #include "cad-operation.h"
12
13 #include <glib-object.h>
14
15 G_BEGIN_DECLS
16
17 #define CAD_TYPE_PULSE (cad_pulse_get_type())
18
19 G_DECLARE_FINAL_TYPE(CadPulse, cad_pulse, CAD, PULSE, GObject);
20
21 CadPulse *cad_pulse_get_default(void);
22 void cad_pulse_select_mode(CallAudioMode mode, CadOperation *op);
23 void cad_pulse_enable_speaker(gboolean enable, CadOperation *op);
24 void cad_pulse_mute_mic(gboolean mute, CadOperation *op);
25
26 CallAudioMode cad_pulse_get_audio_mode(void);
27 CallAudioSpeakerState cad_pulse_get_speaker_state(void);
28 CallAudioMicState cad_pulse_get_mic_state(void);
29
30 G_END_DECLS