diff options
Diffstat (limited to 'pjmedia/include/pjmedia-audiodev')
-rw-r--r-- | pjmedia/include/pjmedia-audiodev/config.h | 29 | ||||
-rw-r--r-- | pjmedia/include/pjmedia-audiodev/errno.h | 9 |
2 files changed, 29 insertions, 9 deletions
diff --git a/pjmedia/include/pjmedia-audiodev/config.h b/pjmedia/include/pjmedia-audiodev/config.h index 7a512fc8..f427a7d0 100644 --- a/pjmedia/include/pjmedia-audiodev/config.h +++ b/pjmedia/include/pjmedia-audiodev/config.h @@ -113,15 +113,32 @@ PJ_BEGIN_DECL #endif -/** - * This setting controls whether WMME support should be included. - */ + /** + * This setting controls whether WMME support should be included. + */ #ifndef PJMEDIA_AUDIO_DEV_HAS_WMME -# define PJMEDIA_AUDIO_DEV_HAS_WMME 1 +# ifdef PJ_WIN32_UWP +# define PJMEDIA_AUDIO_DEV_HAS_WMME 0 +# else +# define PJMEDIA_AUDIO_DEV_HAS_WMME 1 +# endif #endif - -/** + + /** + * This setting controls whether Windows Audio Session API (WASAPI) + * support should be included. + */ +#ifndef PJMEDIA_AUDIO_DEV_HAS_WASAPI +# ifdef PJ_WIN32_UWP +# define PJMEDIA_AUDIO_DEV_HAS_WASAPI 1 +# else +# define PJMEDIA_AUDIO_DEV_HAS_WASAPI 0 +# endif +#endif + + + /** * This setting controls whether BDIMAD support should be included. */ #ifndef PJMEDIA_AUDIO_DEV_HAS_BDIMAD diff --git a/pjmedia/include/pjmedia-audiodev/errno.h b/pjmedia/include/pjmedia-audiodev/errno.h index 19d1c821..907b6896 100644 --- a/pjmedia/include/pjmedia-audiodev/errno.h +++ b/pjmedia/include/pjmedia-audiodev/errno.h @@ -192,9 +192,12 @@ PJ_BEGIN_DECL */ #define PJMEDIA_EAUD_BADLATENCY (PJMEDIA_AUDIODEV_ERRNO_START+12) /* 4200012 */ - - - + /** + * @hideinitializer + * General WASAPI error + */ +#define PJMEDIA_EAUD_WASAPI_ERROR \ + (PJMEDIA_AUDIODEV_ERRNO_START+13) /* 4200013 */ /** * Get error message for the specified error code. Note that this |