Go to the source code of this file.
|
| | WINE_DEFAULT_DEBUG_CHANNEL (quartz) |
| |
| 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 219 of file audiodata.c.
220{
222
223 TRACE(
"(%p,%p)\n", pUnkOuter, ppObj);
224
225 if (pUnkOuter)
227
228 if (!(
object =
calloc(1,
sizeof(*
object))))
230
232 object->ref = 1;
233
235 object->wave_format.nChannels = 1;
236 object->wave_format.nSamplesPerSec = 11025;
237 object->wave_format.wBitsPerSample = 16;
238 object->wave_format.nBlockAlign = object->wave_format.wBitsPerSample * object->wave_format.nChannels / 8;
239 object->wave_format.nAvgBytesPerSec = object->wave_format.nBlockAlign * object->wave_format.nSamplesPerSec;
240
241 *ppObj = &object->IAudioData_iface;
242
244}
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 = %lu\n", iface,
This->ref);
68
70}
#define InterlockedIncrement
static AMAudioDataImpl * impl_from_IAudioData(IAudioData *iface)
◆ IAudioDataImpl_GetFormat()
Definition at line 167 of file audiodata.c.
168{
170
171 TRACE(
"(%p)->(%p)\n", iface, wave_format_current);
172
173 if (!wave_format_current)
174 {
176 }
177
178 *wave_format_current =
This->wave_format;
179
181}
◆ IAudioDataImpl_GetInfo()
Definition at line 123 of file audiodata.c.
124{
126
128
130 {
131 return MS_E_NOTINIT;
132 }
133
135 {
137 }
139 {
141 }
142 if (actual_data)
143 {
144 *actual_data =
This->actual_data;
145 }
146
148}
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 decreasing refcount to %lu.\n", audiodata,
ref);
78
80 {
84 }
85
87}
#define InterlockedDecrement
◆ IAudioDataImpl_SetActual()
Definition at line 150 of file audiodata.c.
151{
153
154 TRACE(
"(%p)->(%lu)\n", iface, data_valid);
155
156 if (data_valid >
This->size)
157 {
159 }
160
161 This->actual_data = data_valid;
162
164}
◆ IAudioDataImpl_SetBuffer()
Definition at line 90 of file audiodata.c.
91{
93
95
97 {
99 }
100
101 if (
This->data_owned)
102 {
105 }
106
109
111 {
115 {
117 }
118 }
119
121}
◆ IAudioDataImpl_SetFormat()
Definition at line 183 of file audiodata.c.
184{
186
187 TRACE(
"(%p)->(%p)\n", iface, wave_format);
188
189 if (!wave_format)
190 {
192 }
193
195 {
197 }
198
199 This->wave_format = *wave_format;
200
202}
◆ impl_from_IAudioData()
◆ WINE_DEFAULT_DEBUG_CHANNEL()
| WINE_DEFAULT_DEBUG_CHANNEL |
( |
quartz |
| ) |
|
◆ 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 204 of file audiodata.c.
Referenced by AMAudioData_create().