Changeset 744 for pjproject/trunk/pjmedia/include/pjmedia/sound.h
- Timestamp:
- Sep 27, 2006 10:49:55 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/sound.h
r645 r744 74 74 unsigned default_samples_per_sec;/**< Default sampling rate. */ 75 75 } pjmedia_snd_dev_info; 76 77 /** 78 * Stream information, can be retrieved from a live stream by calling 79 * #pjmedia_snd_stream_get_info(). 80 */ 81 typedef struct pjmedia_snd_stream_info 82 { 83 pjmedia_dir dir; /**< Stream direction. */ 84 int play_id; /**< Playback dev id, or -1 for rec only*/ 85 int rec_id; /**< Capture dev id, or -1 for play only*/ 86 unsigned clock_rate; /**< Actual clock rate. */ 87 unsigned channel_count; /**< Number of channels. */ 88 unsigned samples_per_frame; /**< Samples per frame. */ 89 unsigned bits_per_sample; /**< Bits per sample. */ 90 unsigned rec_latency; /**< Record latency, in samples. */ 91 unsigned play_latency; /**< Playback latency, in samples. */ 92 } pjmedia_snd_stream_info; 93 76 94 77 95 /** … … 233 251 234 252 /** 253 * Get information about live stream. 254 * 255 * @param strm The stream to be queried. 256 * @param i Pointer to stream information to be filled up with 257 * information about the stream. 258 * 259 * @return PJ_SUCCESS on success or the appropriate error code. 260 */ 261 PJ_DECL(pj_status_t) pjmedia_snd_stream_get_info(pjmedia_snd_stream *strm, 262 pjmedia_snd_stream_info *pi); 263 264 265 /** 235 266 * Start the stream. 236 267 *
Note: See TracChangeset
for help on using the changeset viewer.