| Top |
| void | (*CallAudioCallback) () |
| gboolean | call_audio_init () |
| gboolean | call_audio_is_inited () |
| void | call_audio_deinit () |
| gboolean | call_audio_select_mode () |
| gboolean | call_audio_select_mode_async () |
| CallAudioMode | call_audio_get_audio_mode () |
| gboolean | call_audio_enable_speaker () |
| gboolean | call_audio_enable_speaker_async () |
| CallAudioSpeakerState | call_audio_get_speaker_state () |
| gboolean | call_audio_mute_mic () |
| gboolean | call_audio_mute_mic_async () |
| CallAudioMicState | call_audio_get_mic_state () |
To use the library call call_audio_init().
After initializing the library you can send audio routing requests using the
library functions.
When your application finishes call call_audio_deinit() to free resources:
1 2 3 4 5 6 7 8 9 10 11 12 |
#include <libcallaudio.h> int main(void) { g_autoptr(GError) err = NULL; if (call_audio_init(&err)) { g_error("%s", err->message); } ... call_audio_deinit(); return 0; } |
gboolean
call_audio_init (GError **error);
call_audio_init is deprecated and should not be used in newly-written code.
Initialize libcallaudio. This must be called before any other functions.
gboolean
call_audio_is_inited (void);
call_audio_is_inited is deprecated and should not be used in newly-written code.
Query whether libcallaudio has been initialized before. This can be used to ensure library calls will perform actual actions.
void
call_audio_deinit (void);
call_audio_deinit is deprecated and should not be used in newly-written code.
Uninitialize the library when no longer used. Usually called on program shutdown.
gboolean call_audio_select_mode (CallAudioMode mode,GError **error);
call_audio_select_mode is deprecated and should not be used in newly-written code.
Select the audio mode to use. This function is synchronous, and will return only once the operation has been executed.
gboolean call_audio_select_mode_async (CallAudioMode mode,CallAudioCallback cb,gpointer data);
call_audio_select_mode_async is deprecated and should not be used in newly-written code.
Select the audio mode to use.
CallAudioMode
call_audio_get_audio_mode (void);
call_audio_get_audio_mode is deprecated and should not be used in newly-written code.
gboolean call_audio_enable_speaker (gboolean enable,GError **error);
call_audio_enable_speaker is deprecated and should not be used in newly-written code.
Enable or disable speaker output. This function is synchronous, and will return only once the operation has been executed.
gboolean call_audio_enable_speaker_async (gboolean enable,CallAudioCallback cb,gpointer data);
call_audio_enable_speaker_async is deprecated and should not be used in newly-written code.
Enable or disable speaker output.
CallAudioSpeakerState
call_audio_get_speaker_state (void);
call_audio_get_speaker_state is deprecated and should not be used in newly-written code.
CALL_AUDIO_SPEAKER_ON if the speaker is on, CALL_AUDIO_SPEAKER_OFF if it is off or
CALL_AUDIO_SPEAKER_UNKNOWN if the state is not known.
gboolean call_audio_mute_mic (gboolean mute,GError **error);
call_audio_mute_mic is deprecated and should not be used in newly-written code.
Mute or unmute microphone. This function is synchronous, and will return only once the operation has been executed.
gboolean call_audio_mute_mic_async (gboolean mute,CallAudioCallback cb,gpointer data);
call_audio_mute_mic_async is deprecated and should not be used in newly-written code.
Mute or unmute microphone.
CallAudioMicState
call_audio_get_mic_state (void);
call_audio_get_mic_state is deprecated and should not be used in newly-written code.
CALL_AUDIO_MIC_ON if the microphone is on, CALL_AUDIO_MIC_OFF if it is off or
CALL_AUDIO_MIC_UNKNOWN if the state is not known.