Changeset 6112 for pjproject/trunk/pjmedia/include/pjmedia/wav_port.h
- Timestamp:
- Nov 29, 2019 4:21:17 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/wav_port.h
r4793 r6112 152 152 153 153 154 #if !DEPRECATED_FOR_TICKET_2251 154 155 /** 155 156 * Register a callback to be called when the file reading has reached the … … 167 168 * @return PJ_SUCCESS on success. 168 169 */ 169 PJ_DECL(pj_status_t) 170 PJ_DECL(pj_status_t) 170 171 pjmedia_wav_player_set_eof_cb( pjmedia_port *port, 171 172 void *user_data, 172 173 pj_status_t (*cb)(pjmedia_port *port, 173 174 void *usr_data)); 175 #endif 176 177 178 /** 179 * Register a callback to be called when the file reading has reached the 180 * end of file. If the file is set to play repeatedly, then the callback 181 * will be called multiple times. Note that only one callback can be 182 * registered for each file port. 183 * 184 * @param port The file player port. 185 * @param user_data User data to be specified in the callback 186 * @param cb Callback to be called. Note that if 187 * application wishes to stop the playback, it 188 * can disconnect the port in the callback, and 189 * only after all connections have been removed 190 * could the application safely destroy the port. 191 * 192 * @return PJ_SUCCESS on success. 193 */ 194 PJ_DECL(pj_status_t) 195 pjmedia_wav_player_set_eof_cb2(pjmedia_port *port, 196 void *user_data, 197 void (*cb)(pjmedia_port *port, 198 void *usr_data)); 199 174 200 175 201 /** … … 256 282 257 283 284 #if !DEPRECATED_FOR_TICKET_2251 258 285 /** 259 286 * Register the callback to be called when the file writing has reached … … 278 305 pj_status_t (*cb)(pjmedia_port *port, 279 306 void *usr_data)); 307 #endif 308 309 310 /** 311 * Register the callback to be called when the file writing has reached 312 * certain size. Application can use this callback, for example, to limit 313 * the size of the output file. 314 * 315 * @param port The file writer port. 316 * @param pos The file position on which the callback will be called. 317 * @param user_data User data to be specified in the callback, and will be 318 * given on the callback. 319 * @param cb Callback to be called. Note that if 320 * application wishes to stop the writing, it 321 * can disconnect the port in the callback, and 322 * only after all connections have been removed 323 * could the application safely destroy the port. 324 * 325 * @return PJ_SUCCESS on success. 326 */ 327 PJ_DECL(pj_status_t) 328 pjmedia_wav_writer_port_set_cb2(pjmedia_port *port, 329 pj_size_t pos, 330 void *user_data, 331 void (*cb)(pjmedia_port *port, 332 void *usr_data)); 280 333 281 334
Note: See TracChangeset
for help on using the changeset viewer.