| 27 | You can use '''{{{sndtest}}}''' sample to test the performance of the sound device/driver in your platform. The {{{sndtest}}} binary should be placed in {{{pjsip-apps/bin/samples}}} directory after the samples project is successfully built. |
| 28 | |
| 29 | To run the {{{sndtest}}} application to test the default sound device: |
| 30 | {{{ |
| 31 | $ ./sndtest |
| 32 | }}} |
| 33 | |
| 34 | The test will run for few seconds, and at the end it will display output similar to the snippet below: |
| 35 | {{{ |
| 36 | 13:06:18.652 sndtest.c Found 8 devices: |
| 37 | 13:06:18.672 sndtest.c 0: Primary Sound Capture Driver (capture=2, playback=0) |
| 38 | 13:06:18.682 sndtest.c 1: Crystal SoundFusion(tm) (capture=2, playback=0) |
| 39 | 13:06:18.692 sndtest.c 2: Primary Sound Driver (capture=0, playback=2) |
| 40 | 13:06:18.702 sndtest.c 3: Crystal SoundFusion(tm) (capture=0, playback=2) |
| 41 | 13:06:18.712 sndtest.c 4: Microsoft Sound Mapper - Input (capture=2, playback=0) |
| 42 | 13:06:18.722 sndtest.c 5: Crystal SoundFusion(tm) (capture=2, playback=0) |
| 43 | 13:06:18.732 sndtest.c 6: Microsoft Sound Mapper - Output (capture=0, playback=2) |
| 44 | 13:06:18.742 sndtest.c 7: Crystal SoundFusion(tm) (capture=0, playback=2) |
| 45 | 13:06:18.752 sndtest.c Testing Primary Sound Capture Driver |
| 46 | 13:06:19.002 sndtest.c Please wait while test is in progress (~11 secs).. |
| 47 | 13:06:30.078 sndtest.c Dumping results: |
| 48 | 13:06:30.088 sndtest.c Parameters: clock rate=8000Hz, 80 samples/frame |
| 49 | 13:06:30.088 sndtest.c Playback stream report: |
| 50 | 13:06:30.098 sndtest.c Duration: 10s.120 |
| 51 | 13:06:30.098 sndtest.c Frame interval: min=0.006ms, max=32.475ms |
| 52 | 13:06:30.108 sndtest.c Jitter: min=9.990ms, avg=23.530ms, max=32.467ms |
| 53 | 13:06:30.108 sndtest.c Capture stream report: |
| 54 | 13:06:30.118 sndtest.c Duration: 9s.990 |
| 55 | 13:06:30.118 sndtest.c Frame interval: min=0.006ms, max=32.480ms |
| 56 | 13:06:30.128 sndtest.c Jitter: min=9.722ms, avg=23.706ms, max=32.472ms |
| 57 | 13:06:30.128 sndtest.c Checking for clock drifts: |
| 58 | 13:06:30.138 sndtest.c No clock drifts is detected |
| 59 | 13:06:30.138 sndtest.c Test completed with some warnings |
| 60 | }}} |
| 61 | |
| 62 | |