Changeset 5201


Ignore:
Timestamp:
Nov 19, 2015 4:03:00 AM (6 years ago)
Author:
ming
Message:

Re #1882 (misc): Configurable audio device name length

Thanks to Wolfgang Wallhäuser for the original patch.

Location:
pjproject/trunk/pjmedia/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia-audiodev/audiodev.h

    r5110 r5201  
    224224     * The device name  
    225225     */ 
    226     char name[64]; 
     226    char name[PJMEDIA_AUD_DEV_INFO_NAME_LEN]; 
    227227 
    228228    /**  
  • pjproject/trunk/pjmedia/include/pjmedia-audiodev/config.h

    r4537 r5201  
    4242 * @{ 
    4343 */ 
     44 
     45/** 
     46 * This setting controls the buffer length of audio device name. 
     47 * 
     48 * Default: 128 for Windows platforms, 64 for others 
     49 */ 
     50#ifndef PJMEDIA_AUD_DEV_INFO_NAME_LEN 
     51#   if (defined(PJ_WIN32) && PJ_WIN32!=0) || \ 
     52       (defined(PJ_WIN64) && PJ_WIN64!=0) 
     53#       define PJMEDIA_AUD_DEV_INFO_NAME_LEN 128 
     54#   else 
     55#       define PJMEDIA_AUD_DEV_INFO_NAME_LEN 64 
     56#   endif 
     57#endif 
    4458 
    4559/** 
  • pjproject/trunk/pjmedia/include/pjmedia/sound.h

    r3553 r5201  
    7676typedef struct pjmedia_snd_dev_info 
    7777{ 
    78     char        name[64];               /**< Device name.                   */ 
     78    char        name[PJMEDIA_AUD_DEV_INFO_NAME_LEN];             
     79                                        /**< Device name.                   */ 
    7980    unsigned    input_count;            /**< Max number of input channels.  */ 
    8081    unsigned    output_count;           /**< Max number of output channels. */ 
Note: See TracChangeset for help on using the changeset viewer.