summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2015-10-11 13:01:47 +0200
committerAlfred E. Heggestad <aeh@db.org>2015-10-11 13:01:47 +0200
commite82485c88c082e96343d7cc72f955e0ccbd64a4e (patch)
tree802e1d61f49adf3f00b2d52bcab96acffd1df575 /include
parent25225de72f2ba6c89abe862e2e027906c9ef8a76 (diff)
audio: add API to set source/player while in call
int audio_set_source(struct audio *au, const char *mod, const char *device); int audio_set_player(struct audio *au, const char *mod, const char *device); example usage: audio_set_player(call_audio(ua_call(uag_cur())), "alsa", "default"); fixes #70
Diffstat (limited to 'include')
-rw-r--r--include/baresip.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/baresip.h b/include/baresip.h
index 9c87e95..67fef23 100644
--- a/include/baresip.h
+++ b/include/baresip.h
@@ -844,6 +844,8 @@ struct audio;
void audio_mute(struct audio *a, bool muted);
bool audio_ismuted(const struct audio *a);
void audio_set_devicename(struct audio *a, const char *src, const char *play);
+int audio_set_source(struct audio *au, const char *mod, const char *device);
+int audio_set_player(struct audio *au, const char *mod, const char *device);
void audio_encoder_cycle(struct audio *audio);
int audio_debug(struct re_printf *pf, const struct audio *a);