Opened 7 years ago

Closed 7 years ago

#2075 closed defect (fixed)

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


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 (1)

comment:1 Changed 7 years ago by nanang

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

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.