Ignore:
Timestamp:
Mar 11, 2011 6:57:24 AM (13 years ago)
Author:
ming
Message:

Fixed #1204: Support for refreshing audio device list.

File:
1 edited

Legend:

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

    r2506 r3438  
    6262  
    6363 */ 
     64 
     65/** 
     66 * Sound port options. 
     67 */ 
     68enum pjmedia_snd_port_option 
     69{ 
     70    /**  
     71     * Don't start the audio device when creating a sound port. 
     72     */     
     73    PJMEDIA_SND_PORT_NO_AUTO_START = 1 
     74}; 
     75 
     76/** 
     77 * This structure specifies the parameters to create the sound port. 
     78 */ 
     79typedef struct pjmedia_snd_port_param 
     80{ 
     81    /** 
     82     * Base structure. 
     83     */ 
     84    pjmedia_aud_param base; 
     85     
     86    /** 
     87     * Sound port creation options. 
     88     */ 
     89    unsigned options; 
     90} pjmedia_snd_port_param; 
    6491 
    6592/** 
     
    87114 * @param bits_per_sample   Set the number of bits per sample. The normal  
    88115 *                          value for this parameter is 16 bits per sample. 
    89  * @param options           Options flag, currently must be zero. 
     116 * @param options           Options flag. 
    90117 * @param p_port            Pointer to receive the sound device port instance. 
    91118 * 
     
    117144 * @param bits_per_sample   Set the number of bits per sample. The normal  
    118145 *                          value for this parameter is 16 bits per sample. 
    119  * @param options           Options flag, currently must be zero. 
     146 * @param options           Options flag. 
    120147 * @param p_port            Pointer to receive the sound device port instance. 
    121148 * 
     
    146173 * @param bits_per_sample   Set the number of bits per sample. The normal  
    147174 *                          value for this parameter is 16 bits per sample. 
    148  * @param options           Options flag, currently must be zero. 
     175 * @param options           Options flag. 
    149176 * @param p_port            Pointer to receive the sound device port instance. 
    150177 * 
     
    166193 * 
    167194 * @param pool              Pool to allocate sound port structure. 
    168  * @param prm               Sound device settings. 
     195 * @param prm               Sound port parameter. 
    169196 * @param p_port            Pointer to receive the sound device port instance. 
    170197 * 
     
    173200 */ 
    174201PJ_DECL(pj_status_t) pjmedia_snd_port_create2(pj_pool_t *pool, 
    175                                               const pjmedia_aud_param *prm, 
     202                                              const pjmedia_snd_port_param *prm, 
    176203                                              pjmedia_snd_port **p_port); 
    177204 
Note: See TracChangeset for help on using the changeset viewer.