| Methods |
| void Connect(BSTR host) | Call this method to switch component to Client mode, and try to connect to remote side |
| void Disconnect() | Closes connection with remote side and switches component to Server mode |
| void DisconnectClient(long ConnId) | Disconnects client from server using client connection ID |
| bool FormatChoose(BSTR Title, long Handle) | Creates an ACM-defined dialog box that enables the user to select a waveform-audio format. Title parameter indicates dialog's title, Handle - parent handle of dialog window. If Handle is 0 then ActiveX component handle is used |
| BSTR FormatChooseStr(BSTR Title, long Handle) | Displays an audio format dialog fox and returns settings in an encoded string |
| bool FormatSetStr(BSTR Format) | Changes audio format settings using a string returned by FormatChooseStr function |
| long GetClientConnId(long ClientIndex) | Returns ClientId for given index. ClientIndex may be from 0 to ClientCount - 1 |
| BSTR GetClientParam(long ConnId, vcClientParam ParamType) | Returns client parameter such as ip-address, port number etc. using client connection ID and param type |
| bool GetInternalActive(vcMediaGateInternal Internal) | Returns True if internal component (WaveIn, CodecIn, IpServer, IpClient, CodecOut, WaveOut) is active |
| long GetVolume(bool VolumeIn, long Channel) | Returns current volume value. Result values range is 0...300 (logarithmic scale). VolumeIn parameter indicates recording (True) or playback (False) volume level |
| void SendText(long ConnId, BSTR text) | Sends text message to client indicated by ConnId parameter over network. If component is in client mode, ConnId parameter is ignored |
| void SetInternalActive(vcMediaGateInternal Internal, bool Active) | Set value for Active property of internal component |
| Properties |
| bool Active | Set to true to activate (open) the component. All other properties should be set to proper values before activation. Set to false to deactivate (close) the component |
| BSTR BindTo | Specifies the IP address the socket should bind to. Default '0.0.0.0' means that the socket should bind to the first available network interface. |
| long BytesReceived | Returns number or bytes component has received from the network |
| long BytesSent | Returns number or bytes component has sent to the network |
| long ClientCount | Returns current number of clients connected |
| BSTR ConversationFileName | File name (.wav) to save conversation in |
| bool ConversationSaveToFile | When true saves conversation to .wav file on disk |
| long DataSizeIn | Returns data written into but not yet processed by the pipe |
| long DataSizeOut | Returns data size available to read from the pipe |
| long DeviceId | Specifies device ID for the wave device |
| bool EnablePlayback | Enables or disables audio playback |
| bool EnableRecording | Enables or disables audio recording |
| long FormatTag | Specifies audio format tag for the wave device |
| bool IsFormatProvider | When true the component will assign stream format to the consumer (if any). This simplifies the process of distributing stream format among linked components. For example WaveRiff component can assign PCM format to linked WaveOutDevice component, so WAVe file will be played back correctly |
| bool IsClientActive | Indicates if client is active |
| bool IsServerActive | Indicates if server is active |
| long MaxClients | Specifies maximum number of clients that can connect to server. "-1" value means no limit, "0" value means no clients |
| long MinActiveTime | Specifies the minimum amount of time (in milliseconds) for recorder to be active once activated |
| long MinVolumeLevel | Minimum volume level for recording |
| long OverNum | Specifies how many chunks of data component can store in input or output buffer, if data cannot be processed immediately. Every chunk holds 1/10 sec. of audio. Set this property to 0 to disable the buffer overflow checking (NOTE: be carefully, since this could lead to uncontrolled memory usage grow) |
| long PcmBitsPerSample | Specifies number of bits per sample for wave device |
| long PcmNumChannels | Specifies number of channels per sample for wave device |
| long PcmSamplesPerSec | Specifies number of samples per second for wave device |
| BSTR Port | Specifies port number for the client/server TCP/IP socket |
| unaProtoType Proto | Specifies Proto for the TCP/IP socket (TCP or UDP) |
| unaSilenceDetectionMode SilenceDetectionMode | No silence detection - unasdm_none. Obsolete approach - unasdm_VC. New approach based on dynamic speech processing - unasdm_DSP. |
| bool SyncEvents | Specifies whether events calls synchronized through main thread |