ghy
Alejandro Acuña
2025-03-12 26319e4c5bfbee722c15b8e7ccca9b6127bb1cb8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// CCNSMT.idl : IDL source for CCNSMT.dll
//
 
// This file will be processed by the MIDL tool to
// produce the type library (CCNSMT.tlb) and marshalling code.
 
import "oaidl.idl";
import "ocidl.idl";
    [
        object,
        uuid(94221C4D-00F1-11D4-9D59-0060B0FC246C),
    
        helpstring("ICCNMediaTerm Interface"),
        pointer_default(unique)
    ]
    interface ICCNMediaTerm : IUnknown
    {
        [helpstring("method Initialize")]
            HRESULT Initialize();
        [helpstring("method UnInitialize")]
            HRESULT UnInitialize();
        [helpstring("method StartMicrophone")] 
            HRESULT StartMicrophone();
        [helpstring("method StopMicrophone")] 
            HRESULT StopMicrophone();
        [helpstring("method StartAudioReceive")] 
            HRESULT StartAudioReceive();
        [helpstring("method StopAudioReceive")] 
            HRESULT StopAudioReceive();
        [helpstring("method StopDtmfTone")] 
            HRESULT StopDtmfTone();
        [helpstring("method SetAudioCodecRX")] 
            HRESULT SetAudioCodecRX([in] long CompressionType, [in] long MillisecPacketSize, [in] long EchoCancellationValue, [in] long G723BitRate);
        [helpstring("method SetAudioCodecTX")] 
            HRESULT SetAudioCodecTX([in] long CompressionType, [in] long MillisecPacketSize, [in] long PrecedenceValue, [in] long SilenceSuppression, [in] unsigned short MaxFramesPerPacket, [in] long G723BitRate);
        [helpstring("method SetAudioDestination")] 
            HRESULT SetAudioDestination([in] BSTR strHostName, [in] long nUDPortNumber);
        [helpstring("method SetAudioReceivePort")] 
            HRESULT SetAudioReceivePort([in] long nUDPPortNumber);
        [helpstring("method StartDtmfTone")] 
            HRESULT StartDtmfTone([in] long cToneAsChar, [in] long OnTime, [in] long OffTime);
        [helpstring("method StartPlayingFileTX")] 
            HRESULT StartPlayingFileTX([in] BSTR Filename, [in] unsigned long Mode, [in] unsigned long volume, [in, out] long * Cookie);
        [helpstring("method StartPlayingFileRX")] 
            HRESULT StartPlayingFileRX([in] BSTR Filename, [in] unsigned long Mode, [in] unsigned long waveoutDeviceID, [in] unsigned long volume, [in, out] long * Cookie);
        [helpstring("method StopPlayingFileTX")] 
            HRESULT StopPlayingFileTX([in] unsigned long Cookie);
        [helpstring("method StopPlayingFileRX")] 
            HRESULT StopPlayingFileRX([in] unsigned long Cookie);
        [helpstring("method StartTX")] 
            HRESULT StartTX([in] unsigned long waveinDeviceID);
        [helpstring("method StopTX")] 
            HRESULT StopTX();
        [helpstring("method StartRX")] 
            HRESULT StartRX([in] unsigned long waveoutDeviceID);
        [helpstring("method StopRX")] 
            HRESULT StopRX();
        [helpstring("method SetSpeakerVolume")] 
            HRESULT SetSpeakerVolume([in] unsigned long deviceID, [in] unsigned long volume);
        [helpstring("method SetMicrophoneVolume")] 
            HRESULT SetMicrophoneVolume([in] unsigned long deviceID, [in] unsigned long volume);
        [helpstring("method SetFilePlayVolume")] 
            HRESULT SetFilePlayVolume([in] unsigned long cookie, [in] unsigned long volume);
        [helpstring("method NetworkMonitor")] 
            HRESULT NetworkMonitor([in] unsigned long Enable, [in] unsigned long DurationMillisec);
    };
 
 
    [
        uuid(94221C4F-00F1-11D4-9D59-0060B0FC246C),
        helpstring("_ICCNMediaTermEvents Interface")
    ]
    interface _ICCNMediaTermEvents : IUnknown
    {
        [helpstring("method EndOfFileEventRX")] 
            HRESULT EndOfFileEventRX([in] long Cookie);
        [helpstring("method EndOfFileEventTX")] 
            HRESULT EndOfFileEventTX([in] long Cookie);
        [helpstring("method NetworkMonitorEventRX")] 
            HRESULT NetworkMonitorEventRX([in] double RXMean, [in] double RXVariance);
        [helpstring("method NetworkMonitorEventTX")] 
            HRESULT NetworkMonitorEventTX([in] double TXMean, [in] double TXVariance);
    };
 
 
[
    uuid(94221C40-00F1-11D4-9D59-0060B0FC246C),
    version(1.0),
    helpstring("CCNSMT 1.0 Type Library")
]
library CCNSMTLib
{
    importlib("stdole32.tlb");
    importlib("stdole2.tlb");
 
    [
        uuid(94221C4E-00F1-11D4-9D59-0060B0FC246C),
        helpstring("CCNMediaTerm Class")
    ]
    coclass CCNMediaTerm
    {
        [default] interface ICCNMediaTerm;
        [default, source] interface _ICCNMediaTermEvents;
    };
};