53 IAudioData_AddRef(iface);
67 TRACE(
"(%p)->(): new ref = %u\n", iface,
This->ref);
77 TRACE(
"(%p)->(): new ref = %u\n", iface,
This->ref);
104 if (
This->data_owned)
147 *actual_data =
This->actual_data;
157 TRACE(
"(%p)->(%u)\n", iface, data_valid);
159 if (data_valid >
This->size)
164 This->actual_data = data_valid;
174 TRACE(
"(%p)->(%p)\n", iface, wave_format_current);
176 if (!wave_format_current)
181 *wave_format_current =
This->wave_format;
190 TRACE(
"(%p)->(%p)\n", iface, wave_format);
202 This->wave_format = *wave_format;
226 TRACE(
"(%p,%p)\n", pUnkOuter, ppObj);
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;
245 *ppObj = &
object->IAudioData_iface;
#define InterlockedIncrement
#define InterlockedDecrement
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 const struct IAudioDataVtbl AudioData_Vtbl
static HRESULT WINAPI IAudioDataImpl_QueryInterface(IAudioData *iface, REFIID riid, void **ret_iface)
static AMAudioDataImpl * impl_from_IAudioData(IAudioData *iface)
static HRESULT WINAPI IAudioDataImpl_SetActual(IAudioData *iface, DWORD data_valid)
static ULONG WINAPI IAudioDataImpl_Release(IAudioData *iface)
HRESULT AMAudioData_create(IUnknown *pUnkOuter, LPVOID *ppObj)
static HRESULT WINAPI IAudioDataImpl_GetInfo(IAudioData *iface, DWORD *length, BYTE **data, DWORD *actual_data)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define HeapFree(x, y, z)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLuint GLsizei GLsizei * length
VOID WINAPI CoTaskMemFree(LPVOID ptr)
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
#define IsEqualGUID(rguid1, rguid2)
IAudioData IAudioData_iface
#define CONTAINING_RECORD(address, type, field)
#define CLASS_E_NOAGGREGATION