Ticket #495 (closed enhancement: fixed)

Opened 10 years ago

Last modified 10 years ago

Ability to specify different clock rate when opening sound device in PJSUA-LIB

Reported by: nanang Owned by: bennylp
Priority: normal Milestone: release-0.9.0
Component: pjsua-lib Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description


Attachments

ticket495.patch (6.4 KB) - added by nanang 10 years ago.

Change History

Changed 10 years ago by nanang

comment:1 Changed 10 years ago by nanang

Attachment 'ticket495.patch':

  • added snd_clock_rate to pjsua_media_config
  • added command line option --snd-clock-rate
  • changed resampler option to follow pjsua quality option

comment:2 Changed 10 years ago by bennylp

  • Status changed from new to closed
  • Resolution set to fixed
  • Summary changed from Separate setting for sound device clock rate from conference bridge clock rate to Ability to specify different clock rate when opening sound device in PJSUA-LIB

Committed in r1823, thanks.

comment:3 Changed 10 years ago by bennylp

In r1855:

  • snd_clock_rate is now initialized to zero in pjsua_media_config_default()
  • When trying to open sound device with different clock rate in pjsua_media.c, also try to create resample port and only break successfully from the loop if both sound device and resample port can be created. This is necessary because sometimes resampling is disabled (e.g. in WinCE port).
Note: See TracTickets for help on using tickets.