diff options
author | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2017-03-22 12:52:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-22 12:52:14 +0100 |
commit | 4afc7980a64dcd4abd1bb79d048f7ea363e99cd1 (patch) | |
tree | bbcb5134490682b6157afbdaa68180a725f636ae /modules/auloop | |
parent | c3edc6136aabada7fbbe04e038918b833c1c32c1 (diff) |
Ausrc auplay reentrant (#227)
* ausrc: re-entrant api
* fix ausrc api for linux
* fix ccheck
* auplay: make it re-entrant
* auplay: update more modules
Diffstat (limited to 'modules/auloop')
-rw-r--r-- | modules/auloop/auloop.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/auloop/auloop.c b/modules/auloop/auloop.c index 328366f..22dd1b0 100644 --- a/modules/auloop/auloop.c +++ b/modules/auloop/auloop.c @@ -248,7 +248,8 @@ static int auloop_reset(struct audio_loop *al) auplay_prm.srate = al->srate; auplay_prm.ch = al->ch; auplay_prm.ptime = PTIME; - err = auplay_alloc(&al->auplay, cfg->audio.play_mod, &auplay_prm, + err = auplay_alloc(&al->auplay, baresip_auplayl(), + cfg->audio.play_mod, &auplay_prm, cfg->audio.play_dev, write_handler, al); if (err) { warning("auloop: auplay %s,%s failed: %m\n", @@ -260,7 +261,8 @@ static int auloop_reset(struct audio_loop *al) ausrc_prm.srate = al->srate; ausrc_prm.ch = al->ch; ausrc_prm.ptime = PTIME; - err = ausrc_alloc(&al->ausrc, NULL, cfg->audio.src_mod, + err = ausrc_alloc(&al->ausrc, baresip_ausrcl(), + NULL, cfg->audio.src_mod, &ausrc_prm, cfg->audio.src_dev, read_handler, error_handler, al); if (err) { |