Ignore:
Timestamp:
Sep 27, 2006 10:49:55 PM (18 years ago)
Author:
bennylp
Message:

Added pjmedia_snd_stream_get_info() function.

NOTE SOUND DEVICE IMPLEMENTORS: YOU'LL NEED TO IMPLEMENT THIS

FUNCTION TOO *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/sound.h

    r645 r744  
    7474    unsigned    default_samples_per_sec;/**< Default sampling rate.         */ 
    7575} 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 */ 
     81typedef 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 
    7694 
    7795/**  
     
    233251 
    234252/** 
     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 */ 
     261PJ_DECL(pj_status_t) pjmedia_snd_stream_get_info(pjmedia_snd_stream *strm, 
     262                                                 pjmedia_snd_stream_info *pi); 
     263 
     264 
     265/** 
    235266 * Start the stream. 
    236267 * 
Note: See TracChangeset for help on using the changeset viewer.