Changeset 518 for pjproject/trunk/pjmedia/include/pjmedia/sound.h
- Timestamp:
- Jun 18, 2006 2:02:36 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/sound.h
r352 r518 31 31 32 32 /** 33 * @defgroup PJMED_SND Sound device abstraction. 34 * @ingroup PJMEDIA 33 * @defgroup PJMED_SND Sound Hardware Abstraction 34 * @ingroup PJMED_SND_PORT 35 * @brief PJMEDIA abstraction for sound device hardware 35 36 * @{ 37 * 38 * This section describes lower level abstraction for sound device 39 * hardware. Application normally uses the higher layer @ref 40 * PJMED_SND_PORT abstraction since it works seamlessly with 41 * @ref PJMEDIA_PORT_CONCEPT. 42 * 43 * The sound hardware abstraction basically runs <b>asychronously</b>, 44 * and application must register callbacks to be called to receive/ 45 * supply audio frames from/to the sound hardware. 46 * 47 * A full duplex sound stream (created with #pjmedia_snd_open()) 48 * requires application to supply two callbacks: 49 * - <b><tt>rec_cb</tt></b> callback to be called when it has finished 50 * capturing one media frame, and 51 * - <b><tt>play_cb</tt></b> callback to be called when it needs media 52 * frame to be played to the sound playback hardware. 53 * 54 * Half duplex sound stream (created with #pjmedia_snd_open_rec() or 55 * #pjmedia_snd_open_player()) will only need one of the callback to 56 * be specified. 57 * 58 * After sound stream is created, application need to call 59 * #pjmedia_snd_stream_start() to start capturing/playing back media 60 * frames from/to the sound device. 36 61 */ 37 62 … … 114 139 * Create sound stream for both capturing audio and audio playback, from the 115 140 * same device. This is the recommended way to create simultaneous recorder 116 * and player streams, because it should work on backends that does not allow 141 * and player streams (instead of creating separate capture and playback 142 * streams), because it works on backends that does not allow 117 143 * a device to be opened more than once. 118 144 *
Note: See TracChangeset
for help on using the changeset viewer.