Changeset 2007 for pjproject/trunk/pjmedia/include/pjmedia/sound.h
- Timestamp:
- Jun 12, 2008 12:48:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/sound.h
r974 r2007 152 152 */ 153 153 PJ_DECL(const pjmedia_snd_dev_info*) pjmedia_snd_get_dev_info(unsigned index); 154 155 156 /** 157 * Set sound device latency, this function must be called before sound device 158 * opened, or otherwise default latency setting will be used, @see 159 * PJMEDIA_SND_DEFAULT_REC_LATENCY & PJMEDIA_SND_DEFAULT_PLAY_LATENCY. 160 * 161 * Choosing latency value is not straightforward, it should accomodate both 162 * minimum latency and stability. Lower latency tends to cause sound device 163 * less reliable (producing audio dropouts) on CPU load disturbance. Moreover, 164 * the best latency setting may vary based on many aspects, e.g: sound card, 165 * CPU, OS, kernel, etc. 166 * 167 * @param input_latency The latency of input device, in ms, set to 0 168 * for default PJMEDIA_SND_DEFAULT_REC_LATENCY. 169 * @param output_latency The latency of output device, in ms, set to 0 170 * for default PJMEDIA_SND_DEFAULT_PLAY_LATENCY. 171 * 172 * @return PJ_SUCCESS on success. 173 */ 174 PJ_DECL(pj_status_t) pjmedia_snd_set_latency(unsigned input_latency, 175 unsigned output_latency); 154 176 155 177
Note: See TracChangeset
for help on using the changeset viewer.