Ignore:
Timestamp:
Dec 28, 2016 3:40:07 AM (8 years ago)
Author:
nanang
Message:

Re #1900: More merged from trunk (r5512 mistakenly contains merged changes in third-party dir only).

Location:
pjproject/branches/projects/uwp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/uwp

  • pjproject/branches/projects/uwp/pjmedia/include/pjmedia/sound.h

    r5201 r5513  
    141141 * @return              Zero on success. 
    142142 */ 
    143 PJ_DECL(pj_status_t) pjmedia_snd_init(pj_pool_factory *factory); 
    144  
     143PJ_INLINE(pj_status_t) pjmedia_snd_init(pj_pool_factory *factory) 
     144{ 
     145    /* This function is inlined to avoid pjmedia's dependency on 
     146     * pjmedia-audiodev. 
     147     */ 
     148    return pjmedia_aud_subsys_init(factory); 
     149} 
    145150 
    146151/** 
     
    149154 * @return              Number of devices. 
    150155 */ 
    151 PJ_DECL(int) pjmedia_snd_get_dev_count(void); 
     156PJ_INLINE(int) pjmedia_snd_get_dev_count(void) 
     157{ 
     158    /* This function is inlined to avoid pjmedia's dependency on 
     159     * pjmedia-audiodev. 
     160     */ 
     161    return (int)pjmedia_aud_dev_count(); 
     162} 
    152163 
    153164 
     
    324335 * @return              Zero on success. 
    325336 */ 
    326 PJ_DECL(pj_status_t) pjmedia_snd_deinit(void); 
     337PJ_INLINE(pj_status_t) pjmedia_snd_deinit(void) 
     338{ 
     339    /* This function is inlined to avoid pjmedia's dependency on 
     340     * pjmedia-audiodev. 
     341     */ 
     342    return pjmedia_aud_subsys_shutdown(); 
     343} 
    327344 
    328345 
Note: See TracChangeset for help on using the changeset viewer.