VivoxConfig
Reference the VivoxConfig class for initializing the Vivox SDK.
Read time 11 minutesLast updated 2 days ago
Public Functions
Name | |
|---|---|
| VivoxConfig() | |
| vx_sdk_config_t | ToVx_Sdk_Config() Retrieve the underlying Vivox config. |
| vx_log_level | LogLevel() const The log level of the SDK. Severity level of logs: -1 = no logging, 0 = errors only, 1 = warnings, 2 = info, 3 = debug, 4 = trace, 5 = log all. |
| media_codec_type | DefaultCodecsMask() const The default codec mask. Caution: Altering this value can result in unexpected behavior. Codec type none = 0, codec type siren14 = 1, codec type nm = 3, codec type speex = 4, codec type siren7 = 5, codec type opus = 6, codec type pcmu = 6 For more information, see the Vivox Developer Documentation. |
| int | RenderSourceQueueDepthMax() const The render source maximum queue depth. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| int | RenderSourceInitialBufferCount() const The render source initial buffer count. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| int | UpstreamJitterFrameCount() const The upstream jitter frame count. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| int | MaxLoginsPerUser() const The maximum number of logins allowed for a user. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| int | CaptureDeviceBufferSizeIntervals() const The number of 20 millisecond buffers for the capture device. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| int | RenderDeviceBufferSizeIntervals() const The number of 20 millisecond buffers for the render device. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| int | NeverRtpTimeoutMs() const The number of milliseconds to wait before disconnecting audio due to RTP timeout at initial call time. A zero or a negative value turns off the guard (this is not recommended). |
| int | LostRtpTimeoutMs() const The number of milliseconds to wait before disconnecting audio due to RTP timeout after the call has been established. A zero or a negative value turns off the guard (this is not recommended). |
| long long | ProcessorAffinityMask() const A processor affinity mask for SDK threads. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| bool | DisableDevicePolling() const The status of device polling. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| bool | ForceCaptureSilence() const The status of capturing silence. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| bool | EnableAdvancedAutoLevels() const The status of the advanced automatic settings of audio levels. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| bool | EnablePersistentHTTP() const Enable persistent connections (Windows only). The default is 0, or 1 if the environment variable "VIVOX_ENABLE_PERSISTENT_HTTP" is set. Note that the use of proxies could interfere with any behavior controlled by this setting. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| bool | DisableAudioDucking() const The status of audio ducking (iOS and Xbox One only). Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| bool | EnableFastNetworkChangeDetection() const The status of fast network change detection. This is disabled by default. |
| bool | UseOSProxySettings() const Use operating system-configured proxy settings (Windows only). The default is 0, or 1 if the environment variable "VIVOX_USE_OS_PROXY_SETTINGS" is set. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| bool | AllowSharedCaptureDevices() const Allow shared capture devices (shared in the Vivox context only). Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| bool | EnableDTX() const For most platforms, the default is true. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| void | SetLogLevel(vx_log_level logLevel) Set the log level of the Vivox SDK. Severity level of logs: -1 = no logging, 0 = errors only, 1 = warnings, 2 = info, 3 = debug, 4 = trace, 5 = log all. |
| void | SetDefaultCodecsMask(media_codec_type codecType) Set the codec mask that is used to initialize the connector's configured_codecs. Caution: Altering this value can change the quality of the voice experience. codec type none = 0, codec type siren14 = 1, codec type nm = 3, codec type speex = 4, codec type siren7 = 5, codec type opus = 6, codec type pcmu = 6, For more information, see the Vivox Developer Documentation. |
| void | SetRenderSourceQueueDepthMax(int queueDepthMax) Set the render source maximum queue depth. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| void | SetRenderSourceInitialBufferCount(int initialBufferCount) Set the render source initial buffer count. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| void | SetUpstreamJitterFrameCount(int upstreamJitterFrameCount) Set the upstream jitter frame count. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| void | SetMaxLoginsPerUser(int maxLoginsPerUser) Set the maximum number of logins that a user can have. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| void | SetCaptureDeviceBufferSizeIntervals(int captureDeviceBufferSizeIntervals) Set the number of 20 millisecond buffers for the capture device. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| void | SetRenderDeviceBufferSizeIntervals(int renderDeviceBufferSizeIntervals) Set the number of 20 millisecond buffers for the render device. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| void | SetNeverRtpTimeoutMs(int neverRtpTimeoutMs) Set the number of milliseconds to wait before disconnecting audio due to RTP timeout at initial call time. A zero or a negative value turns off the guard (this is not recommended). |
| void | SetLostRtpTimeoutMs(int lostRtpTimeoutMs) Set the number of milliseconds to wait before disconnecting audio due to RTP timeout after the call has been established. A zero or a negative value turns off the guard (this is not recommended). |
| void | SetProcessorAffinityMask(long long processorAffinityMask) A processor affinity mask for SDK threads. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| void | SetDisableDevicePolling(bool disableDevicePolling) Set whether to disable audio device polling by using a timer. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| void | SetForceCaptureSilence(bool forceCaptureSilence) Set whether to force capturing silence. This is for diagnostic purposes only. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| void | SetEnableAdvancedAutoLevels(bool enableAdvancedAutoLevels) Set whether to enable the advanced automatic settings of audio levels. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| void | SetEnablePersistentHTTP(bool enablePersistentHTTP) Enable persistent connections (Windows only). The default is 0, or 1 if the environment variable "VIVOX_ENABLE_PERSISTENT_HTTP" is set. Note that the use of proxies may interfere with behavior controlled by this setting. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| void | SetDisableAudioDucking(bool disableAudioDucking) Set whether to disable audio ducking (iOS and Xbox One only). Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| void | SetEnableFastNetworkChangeDetection(bool enableFastNetworkChangeDetection) Set whether to enable fast network change detection. This is disabled by default. |
| void | SetUseOSProxySettings(bool useOSProxySettings) Use operating system-configured proxy settings (Windows only). The default is 0, or 1 if the environment variable "VIVOX_USE_OS_PROXY_SETTINGS" is set. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| void | SetAllowSharedCaptureDevices(bool allowSharedCaptureDevices) Allow shared capture devices (shared in the Vivox context only). Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
| void | SetEnableDTX(bool enableDTX) For most platforms, this defaults to true. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation. |
Public Functions Documentation
function VivoxConfig
VivoxConfig()
function ToVx_Sdk_Config
Retrieve the underlying Vivox config.inline vx_sdk_config_t ToVx_Sdk_Config()
function LogLevel
The log level of the SDK. Severity level of logs: -1 = no logging, 0 = errors only, 1 = warnings, 2 = info, 3 = debug, 4 = trace, 5 = log all.inline vx_log_level LogLevel() const
function DefaultCodecsMask
The default codec mask. Caution: Altering this value can result in unexpected behavior. Codec type none = 0, codec type siren14 = 1, codec type nm = 3, codec type speex = 4, codec type siren7 = 5, codec type opus = 6, codec type pcmu = 6 For more information, see the Vivox Developer Documentation.media_codec_type DefaultCodecsMask() const
function RenderSourceQueueDepthMax
The render source maximum queue depth. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.inline int RenderSourceQueueDepthMax() const
function RenderSourceInitialBufferCount
The render source initial buffer count. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.inline int RenderSourceInitialBufferCount() const
function UpstreamJitterFrameCount
The upstream jitter frame count. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.inline int UpstreamJitterFrameCount() const
function MaxLoginsPerUser
The maximum number of logins allowed for a user. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.inline int MaxLoginsPerUser() const
function CaptureDeviceBufferSizeIntervals
The number of 20 millisecond buffers for the capture device. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.inline int CaptureDeviceBufferSizeIntervals() const
function RenderDeviceBufferSizeIntervals
The number of 20 millisecond buffers for the render device. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.inline int RenderDeviceBufferSizeIntervals() const
function NeverRtpTimeoutMs
The number of milliseconds to wait before disconnecting audio due to RTP timeout at initial call time. A zero or a negative value turns off the guard (this is not recommended).inline int NeverRtpTimeoutMs() const
function LostRtpTimeoutMs
The number of milliseconds to wait before disconnecting audio due to RTP timeout after the call has been established. A zero or a negative value turns off the guard (this is not recommended).inline int LostRtpTimeoutMs() const
function ProcessorAffinityMask
A processor affinity mask for SDK threads. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.inline long long ProcessorAffinityMask() const
function DisableDevicePolling
The status of device polling. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.inline bool DisableDevicePolling() const
function ForceCaptureSilence
The status of capturing silence. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.inline bool ForceCaptureSilence() const
function EnableAdvancedAutoLevels
The status of the advanced automatic settings of audio levels. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.inline bool EnableAdvancedAutoLevels() const
function EnablePersistentHTTP
Enable persistent connections (Windows only). The default is 0, or 1 if the environment variable "VIVOX_ENABLE_PERSISTENT_HTTP" is set. Note that the use of proxies could interfere with any behavior controlled by this setting. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.inline bool EnablePersistentHTTP() const
function DisableAudioDucking
The status of audio ducking (iOS and Xbox One only). Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.inline bool DisableAudioDucking() const
function EnableFastNetworkChangeDetection
The status of fast network change detection. This is disabled by default.inline bool EnableFastNetworkChangeDetection() const
function UseOSProxySettings
Use operating system-configured proxy settings (Windows only). The default is 0, or 1 if the environment variable "VIVOX_USE_OS_PROXY_SETTINGS" is set. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.inline bool UseOSProxySettings() const
function AllowSharedCaptureDevices
Allow shared capture devices (shared in the Vivox context only). Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.inline bool AllowSharedCaptureDevices() const
function EnableDTX
For most platforms, the default is true. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.inline bool EnableDTX() const
function SetLogLevel
Set the log level of the Vivox SDK. Severity level of logs: -1 = no logging, 0 = errors only, 1 = warnings, 2 = info, 3 = debug, 4 = trace, 5 = log all.void SetLogLevel( vx_log_level logLevel)
function SetDefaultCodecsMask
Set the codec mask that is used to initialize the connector's configured_codecs. Caution: Altering this value can change the quality of the voice experience. codec type none = 0, codec type siren14 = 1, codec type nm = 3, codec type speex = 4, codec type siren7 = 5, codec type opus = 6, codec type pcmu = 6, For more information, see the Vivox Developer Documentation.void SetDefaultCodecsMask( media_codec_type codecType)
function SetRenderSourceQueueDepthMax
Set the render source maximum queue depth. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.void SetRenderSourceQueueDepthMax( int queueDepthMax)
function SetRenderSourceInitialBufferCount
Set the render source initial buffer count. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.void SetRenderSourceInitialBufferCount( int initialBufferCount)
function SetUpstreamJitterFrameCount
Set the upstream jitter frame count. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.void SetUpstreamJitterFrameCount( int upstreamJitterFrameCount)
function SetMaxLoginsPerUser
Set the maximum number of logins that a user can have. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.void SetMaxLoginsPerUser( int maxLoginsPerUser)
function SetCaptureDeviceBufferSizeIntervals
Set the number of 20 millisecond buffers for the capture device. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.void SetCaptureDeviceBufferSizeIntervals( int captureDeviceBufferSizeIntervals)
function SetRenderDeviceBufferSizeIntervals
Set the number of 20 millisecond buffers for the render device. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.void SetRenderDeviceBufferSizeIntervals( int renderDeviceBufferSizeIntervals)
function SetNeverRtpTimeoutMs
Set the number of milliseconds to wait before disconnecting audio due to RTP timeout at initial call time. A zero or a negative value turns off the guard (this is not recommended).void SetNeverRtpTimeoutMs( int neverRtpTimeoutMs)
function SetLostRtpTimeoutMs
Set the number of milliseconds to wait before disconnecting audio due to RTP timeout after the call has been established. A zero or a negative value turns off the guard (this is not recommended).void SetLostRtpTimeoutMs( int lostRtpTimeoutMs)
function SetProcessorAffinityMask
A processor affinity mask for SDK threads. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.void SetProcessorAffinityMask( long long processorAffinityMask)
function SetDisableDevicePolling
Set whether to disable audio device polling by using a timer. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.void SetDisableDevicePolling( bool disableDevicePolling)
function SetForceCaptureSilence
Set whether to force capturing silence. This is for diagnostic purposes only. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.void SetForceCaptureSilence( bool forceCaptureSilence)
function SetEnableAdvancedAutoLevels
Set whether to enable the advanced automatic settings of audio levels. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.void SetEnableAdvancedAutoLevels( bool enableAdvancedAutoLevels)
function SetEnablePersistentHTTP
Enable persistent connections (Windows only). The default is 0, or 1 if the environment variable "VIVOX_ENABLE_PERSISTENT_HTTP" is set. Note that the use of proxies may interfere with behavior controlled by this setting. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.void SetEnablePersistentHTTP( bool enablePersistentHTTP)
function SetDisableAudioDucking
Set whether to disable audio ducking (iOS and Xbox One only). Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.void SetDisableAudioDucking( bool disableAudioDucking)
function SetEnableFastNetworkChangeDetection
Set whether to enable fast network change detection. This is disabled by default.void SetEnableFastNetworkChangeDetection( bool enableFastNetworkChangeDetection)
function SetUseOSProxySettings
Use operating system-configured proxy settings (Windows only). The default is 0, or 1 if the environment variable "VIVOX_USE_OS_PROXY_SETTINGS" is set. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.void SetUseOSProxySettings( bool useOSProxySettings)
function SetAllowSharedCaptureDevices
Allow shared capture devices (shared in the Vivox context only). Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.void SetAllowSharedCaptureDevices( bool allowSharedCaptureDevices)
function SetEnableDTX
For most platforms, this defaults to true. Caution: Altering this value could result in unexpected behavior. For more information, see the Vivox Developer Documentation.void SetEnableDTX( bool enableDTX)