Go to the source code of this file.
|
| WINE_DEFAULT_DEBUG_CHANNEL (amstream) |
|
static AMAudioDataImpl * | impl_from_IAudioData (IAudioData *iface) |
|
static HRESULT WINAPI | IAudioDataImpl_QueryInterface (IAudioData *iface, REFIID riid, void **ret_iface) |
|
static ULONG WINAPI | IAudioDataImpl_AddRef (IAudioData *iface) |
|
static ULONG WINAPI | IAudioDataImpl_Release (IAudioData *iface) |
|
static HRESULT WINAPI | IAudioDataImpl_SetBuffer (IAudioData *iface, DWORD size, BYTE *data, DWORD flags) |
|
static HRESULT WINAPI | IAudioDataImpl_GetInfo (IAudioData *iface, DWORD *length, BYTE **data, DWORD *actual_data) |
|
static HRESULT WINAPI | IAudioDataImpl_SetActual (IAudioData *iface, DWORD data_valid) |
|
static HRESULT WINAPI | IAudioDataImpl_GetFormat (IAudioData *iface, WAVEFORMATEX *wave_format_current) |
|
static HRESULT WINAPI | IAudioDataImpl_SetFormat (IAudioData *iface, const WAVEFORMATEX *wave_format) |
|
HRESULT | AMAudioData_create (IUnknown *pUnkOuter, LPVOID *ppObj) |
|
◆ COBJMACROS
◆ AMAudioData_create()
Definition at line 222 of file audiodata.c.
223{
225
226 TRACE(
"(%p,%p)\n", pUnkOuter, ppObj);
227
228 if (pUnkOuter)
230
232 if (!object)
234
236 object->ref = 1;
237
239 object->wave_format.nChannels = 1;
240 object->wave_format.nSamplesPerSec = 11025;
241 object->wave_format.wBitsPerSample = 16;
242 object->wave_format.nBlockAlign = object->wave_format.wBitsPerSample * object->wave_format.nChannels / 8;
243 object->wave_format.nAvgBytesPerSec = object->wave_format.nBlockAlign * object->wave_format.nSamplesPerSec;
244
245 *ppObj = &object->IAudioData_iface;
246
248}
static const struct IAudioDataVtbl AudioData_Vtbl
#define CLASS_E_NOAGGREGATION
◆ IAudioDataImpl_AddRef()
Definition at line 62 of file audiodata.c.
63{
66
67 TRACE(
"(%p)->(): new ref = %u\n", iface,
This->ref);
68
70}
#define InterlockedIncrement
static AMAudioDataImpl * impl_from_IAudioData(IAudioData *iface)
◆ IAudioDataImpl_GetFormat()
Definition at line 170 of file audiodata.c.
171{
173
174 TRACE(
"(%p)->(%p)\n", iface, wave_format_current);
175
176 if (!wave_format_current)
177 {
179 }
180
181 *wave_format_current =
This->wave_format;
182
184}
◆ IAudioDataImpl_GetInfo()
Definition at line 126 of file audiodata.c.
127{
129
131
133 {
134 return MS_E_NOTINIT;
135 }
136
138 {
140 }
142 {
144 }
145 if (actual_data)
146 {
147 *actual_data =
This->actual_data;
148 }
149
151}
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLuint GLsizei GLsizei * length
◆ IAudioDataImpl_QueryInterface()
Definition at line 46 of file audiodata.c.
47{
49
52 {
53 IAudioData_AddRef(iface);
54 *ret_iface = iface;
56 }
57
60}
#define IsEqualGUID(rguid1, rguid2)
◆ IAudioDataImpl_Release()
Definition at line 72 of file audiodata.c.
73{
76
77 TRACE(
"(%p)->(): new ref = %u\n", iface,
This->ref);
78
80 {
82 {
84 }
85
87 }
88
90}
#define InterlockedDecrement
#define HeapFree(x, y, z)
VOID WINAPI CoTaskMemFree(LPVOID ptr)
◆ IAudioDataImpl_SetActual()
Definition at line 153 of file audiodata.c.
154{
156
157 TRACE(
"(%p)->(%u)\n", iface, data_valid);
158
159 if (data_valid >
This->size)
160 {
162 }
163
164 This->actual_data = data_valid;
165
167}
◆ IAudioDataImpl_SetBuffer()
Definition at line 93 of file audiodata.c.
94{
96
98
100 {
102 }
103
104 if (
This->data_owned)
105 {
108 }
109
112
114 {
118 {
120 }
121 }
122
124}
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
◆ IAudioDataImpl_SetFormat()
Definition at line 186 of file audiodata.c.
187{
189
190 TRACE(
"(%p)->(%p)\n", iface, wave_format);
191
192 if (!wave_format)
193 {
195 }
196
198 {
200 }
201
202 This->wave_format = *wave_format;
203
205}
◆ impl_from_IAudioData()
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
amstream |
| ) |
|
◆ AudioData_Vtbl
Initial value:=
{
}
static HRESULT WINAPI IAudioDataImpl_GetFormat(IAudioData *iface, WAVEFORMATEX *wave_format_current)
static ULONG WINAPI IAudioDataImpl_AddRef(IAudioData *iface)
static HRESULT WINAPI IAudioDataImpl_SetBuffer(IAudioData *iface, DWORD size, BYTE *data, DWORD flags)
static HRESULT WINAPI IAudioDataImpl_SetFormat(IAudioData *iface, const WAVEFORMATEX *wave_format)
static HRESULT WINAPI IAudioDataImpl_QueryInterface(IAudioData *iface, REFIID riid, void **ret_iface)
static HRESULT WINAPI IAudioDataImpl_SetActual(IAudioData *iface, DWORD data_valid)
static ULONG WINAPI IAudioDataImpl_Release(IAudioData *iface)
static HRESULT WINAPI IAudioDataImpl_GetInfo(IAudioData *iface, DWORD *length, BYTE **data, DWORD *actual_data)
Definition at line 207 of file audiodata.c.
Referenced by AMAudioData_create().