Changeset 5717 for pjproject/trunk/pjsip-apps/src/samples/pjsua2_demo.cpp
- Timestamp:
- Dec 19, 2017 1:45:37 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/pjsua2_demo.cpp
r5650 r5717 226 226 std::cout << "*** PJSUA2 STARTED ***" << std::endl; 227 227 228 /* Use Null Audio Device as main media clock. This is useful for improving 229 * media clock (see also https://trac.pjsip.org/repos/wiki/FAQ#tx-timing) 230 * especially when sound device clock is jittery. 231 */ 232 ep.audDevManager().setNullDev(); 233 234 /* And install sound device using Extra Audio Device */ 235 ExtraAudioDevice auddev2(-1, -1); 236 try { 237 auddev2.open(); 238 } catch (...) { 239 std::cout << "Extra sound device failed" << std::endl; 240 } 241 228 242 // Create player and recorder 229 243 { … … 234 248 amr.createRecorder("recorder_test_output.wav"); 235 249 236 amp.startTransmit(ep.audDevManager().getPlaybackDevMedia());237 250 amp.startTransmit(amr); 251 if (auddev2.isOpened()) 252 amp.startTransmit(auddev2); 238 253 239 254 pj_thread_sleep(5000); … … 332 347 ep.libCreate(); 333 348 334 mainProg 4(ep);349 mainProg3(ep); 335 350 ret = PJ_SUCCESS; 336 351 } catch (Error & err) {
Note: See TracChangeset
for help on using the changeset viewer.