Alejandro Acuña
2024-10-25 e51f4a713ed6e744c203c9493165584728a29c52
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
// Created by Microsoft (R) C/C++ Compiler Version 12.00.8964.0 (053f5f6b).
//
// \\tsclient\g\winrtp\winrtp\testwinrtp\release\CCNSMT.tlh
//
// C++ source equivalent of Win32 type library ../CCNMediaTerm/CCNSMT/CCNSMT.tlb
// compiler-generated file created 06/04/13 at 18:44:51 - DO NOT EDIT!
 
#pragma once
#pragma pack(push, 8)
 
#include <comdef.h>
 
//
// Forward references and typedefs
//
 
struct /* coclass */ CCNMediaTerm;
struct __declspec(uuid("94221c4d-00f1-11d4-9d59-0060b0fc246c"))
/* interface */ ICCNMediaTerm;
struct __declspec(uuid("94221c4f-00f1-11d4-9d59-0060b0fc246c"))
/* interface */ _ICCNMediaTermEvents;
 
//
// Smart pointer typedef declarations
//
 
_COM_SMARTPTR_TYPEDEF(ICCNMediaTerm, __uuidof(ICCNMediaTerm));
_COM_SMARTPTR_TYPEDEF(_ICCNMediaTermEvents, __uuidof(_ICCNMediaTermEvents));
 
//
// Type library items
//
 
struct __declspec(uuid("94221c4e-00f1-11d4-9d59-0060b0fc246c"))
CCNMediaTerm;
    // [ default ] interface ICCNMediaTerm
    // [ default, source ] interface _ICCNMediaTermEvents
 
struct __declspec(uuid("94221c4d-00f1-11d4-9d59-0060b0fc246c"))
ICCNMediaTerm : IUnknown
{
    //
    // Raw methods provided by interface
    //
 
    virtual HRESULT __stdcall Initialize ( ) = 0;
    virtual HRESULT __stdcall UnInitialize ( ) = 0;
    virtual HRESULT __stdcall StartMicrophone ( ) = 0;
    virtual HRESULT __stdcall StopMicrophone ( ) = 0;
    virtual HRESULT __stdcall StartAudioReceive ( ) = 0;
    virtual HRESULT __stdcall StopAudioReceive ( ) = 0;
    virtual HRESULT __stdcall StopDtmfTone ( ) = 0;
    virtual HRESULT __stdcall SetAudioCodecRX (
        long CompressionType,
        long MillisecPacketSize,
        long EchoCancellationValue,
        long G723BitRate ) = 0;
    virtual HRESULT __stdcall SetAudioCodecTX (
        long CompressionType,
        long MillisecPacketSize,
        long PrecedenceValue,
        long SilenceSuppression,
        unsigned short MaxFramesPerPacket,
        long G723BitRate ) = 0;
    virtual HRESULT __stdcall SetAudioDestination (
        BSTR strHostName,
        long nUDPortNumber ) = 0;
    virtual HRESULT __stdcall SetAudioReceivePort (
        long nUDPPortNumber ) = 0;
    virtual HRESULT __stdcall StartDtmfTone (
        long cToneAsChar,
        long OnTime,
        long OffTime ) = 0;
    virtual HRESULT __stdcall StartPlayingFileTX (
        BSTR Filename,
        unsigned long Mode,
        unsigned long volume,
        long * Cookie ) = 0;
    virtual HRESULT __stdcall StartPlayingFileRX (
        BSTR Filename,
        unsigned long Mode,
        unsigned long waveoutDeviceID,
        unsigned long volume,
        long * Cookie ) = 0;
    virtual HRESULT __stdcall StopPlayingFileTX (
        unsigned long Cookie ) = 0;
    virtual HRESULT __stdcall StopPlayingFileRX (
        unsigned long Cookie ) = 0;
    virtual HRESULT __stdcall StartTX (
        unsigned long waveinDeviceID ) = 0;
    virtual HRESULT __stdcall StopTX ( ) = 0;
    virtual HRESULT __stdcall StartRX (
        unsigned long waveoutDeviceID ) = 0;
    virtual HRESULT __stdcall StopRX ( ) = 0;
    virtual HRESULT __stdcall SetSpeakerVolume (
        unsigned long deviceID,
        unsigned long volume ) = 0;
    virtual HRESULT __stdcall SetMicrophoneVolume (
        unsigned long deviceID,
        unsigned long volume ) = 0;
    virtual HRESULT __stdcall SetFilePlayVolume (
        unsigned long Cookie,
        unsigned long volume ) = 0;
    virtual HRESULT __stdcall NetworkMonitor (
        unsigned long Enable,
        unsigned long DurationMillisec ) = 0;
};
 
struct __declspec(uuid("94221c4f-00f1-11d4-9d59-0060b0fc246c"))
_ICCNMediaTermEvents : IUnknown
{
    //
    // Raw methods provided by interface
    //
 
    virtual HRESULT __stdcall EndOfFileEventRX (
        long Cookie ) = 0;
    virtual HRESULT __stdcall EndOfFileEventTX (
        long Cookie ) = 0;
    virtual HRESULT __stdcall NetworkMonitorEventRX (
        double RXMean,
        double RXVariance ) = 0;
    virtual HRESULT __stdcall NetworkMonitorEventTX (
        double TXMean,
        double TXVariance ) = 0;
};
 
#pragma pack(pop)