Ticket #2075 (closed defect: fixed)

Opened 5 months ago

Last modified 5 months ago

Cannot change active sound device using PJSUA2 setPlaybackDev/setCaptureDev()

Reported by: nanang Owned by: bennylp
Priority: normal Milestone: release-2.8
Component: pjsua2 Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no

Description

Reported that changing capture/playback device on an active call using PJSUA2 AudDevManager::setPlaybackDev/setCaptureDev() does not work, it is the next call that will use the new capture/playback device.

After investigation, AudDevManager::setPlaybackDev/setCaptureDev() always sets mode to PJSUA_SND_DEV_NO_IMMEDIATE_OPEN, so PJSUA simply saves the new sound device IDs for future device open without reopening currently active sound device.

Thank you Thomas Hackl for the report.

Change History

comment:1 Changed 5 months ago by nanang

  • Status changed from new to closed
  • Resolution set to fixed

In 5713:

Fixed #2075: Updated PJSUA pjsua_set_snd_dev() to immediately apply new sound device IDs if sound device is active even when PJSUA_SND_DEV_NO_IMMEDIATE_OPEN mode is set.

Note: See TracTickets for help on using tickets.