dmusic: Win64 printf format warning fixes.
This commit is contained in:
parent
690ae7ba3d
commit
a4253ba08b
|
@ -5,7 +5,6 @@ VPATH = @srcdir@
|
||||||
MODULE = dmusic.dll
|
MODULE = dmusic.dll
|
||||||
IMPORTS = winmm ole32 msacm32 dsound rpcrt4 user32 advapi32 kernel32 ntdll
|
IMPORTS = winmm ole32 msacm32 dsound rpcrt4 user32 advapi32 kernel32 ntdll
|
||||||
EXTRALIBS = -ldxguid -luuid
|
EXTRALIBS = -ldxguid -luuid
|
||||||
EXTRADEFS = -DWINE_NO_LONG_AS_INT
|
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
buffer.c \
|
buffer.c \
|
||||||
|
|
|
@ -39,7 +39,7 @@ static ULONG WINAPI IDirectMusicBufferImpl_AddRef (LPDIRECTMUSICBUFFER iface) {
|
||||||
IDirectMusicBufferImpl *This = (IDirectMusicBufferImpl *)iface;
|
IDirectMusicBufferImpl *This = (IDirectMusicBufferImpl *)iface;
|
||||||
ULONG refCount = InterlockedIncrement(&This->ref);
|
ULONG refCount = InterlockedIncrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p)->(ref before=%lu)\n", This, refCount - 1);
|
TRACE("(%p)->(ref before=%u)\n", This, refCount - 1);
|
||||||
|
|
||||||
DMUSIC_LockModule();
|
DMUSIC_LockModule();
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ static ULONG WINAPI IDirectMusicBufferImpl_Release (LPDIRECTMUSICBUFFER iface) {
|
||||||
IDirectMusicBufferImpl *This = (IDirectMusicBufferImpl *)iface;
|
IDirectMusicBufferImpl *This = (IDirectMusicBufferImpl *)iface;
|
||||||
ULONG refCount = InterlockedDecrement(&This->ref);
|
ULONG refCount = InterlockedDecrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p)->(ref before=%lu)\n", This, refCount + 1);
|
TRACE("(%p)->(ref before=%u)\n", This, refCount + 1);
|
||||||
|
|
||||||
if (!refCount) {
|
if (!refCount) {
|
||||||
HeapFree(GetProcessHeap(), 0, This);
|
HeapFree(GetProcessHeap(), 0, This);
|
||||||
|
@ -76,13 +76,13 @@ static HRESULT WINAPI IDirectMusicBufferImpl_TotalTime (LPDIRECTMUSICBUFFER ifac
|
||||||
|
|
||||||
static HRESULT WINAPI IDirectMusicBufferImpl_PackStructured (LPDIRECTMUSICBUFFER iface, REFERENCE_TIME rt, DWORD dwChannelGroup, DWORD dwChannelMessage) {
|
static HRESULT WINAPI IDirectMusicBufferImpl_PackStructured (LPDIRECTMUSICBUFFER iface, REFERENCE_TIME rt, DWORD dwChannelGroup, DWORD dwChannelMessage) {
|
||||||
IDirectMusicBufferImpl *This = (IDirectMusicBufferImpl *)iface;
|
IDirectMusicBufferImpl *This = (IDirectMusicBufferImpl *)iface;
|
||||||
FIXME("(%p, 0x%s, %ld, %ld): stub\n", This, wine_dbgstr_longlong(rt), dwChannelGroup, dwChannelMessage);
|
FIXME("(%p, 0x%s, %d, %d): stub\n", This, wine_dbgstr_longlong(rt), dwChannelGroup, dwChannelMessage);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI IDirectMusicBufferImpl_PackUnstructured (LPDIRECTMUSICBUFFER iface, REFERENCE_TIME rt, DWORD dwChannelGroup, DWORD cb, LPBYTE lpb) {
|
static HRESULT WINAPI IDirectMusicBufferImpl_PackUnstructured (LPDIRECTMUSICBUFFER iface, REFERENCE_TIME rt, DWORD dwChannelGroup, DWORD cb, LPBYTE lpb) {
|
||||||
IDirectMusicBufferImpl *This = (IDirectMusicBufferImpl *)iface;
|
IDirectMusicBufferImpl *This = (IDirectMusicBufferImpl *)iface;
|
||||||
FIXME("(%p, 0x%s, %ld, %ld, %p): stub\n", This, wine_dbgstr_longlong(rt), dwChannelGroup, cb, lpb);
|
FIXME("(%p, 0x%s, %d, %d, %p): stub\n", This, wine_dbgstr_longlong(rt), dwChannelGroup, cb, lpb);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ static HRESULT WINAPI IDirectMusicBufferImpl_SetStartTime (LPDIRECTMUSICBUFFER i
|
||||||
|
|
||||||
static HRESULT WINAPI IDirectMusicBufferImpl_SetUsedBytes (LPDIRECTMUSICBUFFER iface, DWORD cb) {
|
static HRESULT WINAPI IDirectMusicBufferImpl_SetUsedBytes (LPDIRECTMUSICBUFFER iface, DWORD cb) {
|
||||||
IDirectMusicBufferImpl *This = (IDirectMusicBufferImpl *)iface;
|
IDirectMusicBufferImpl *This = (IDirectMusicBufferImpl *)iface;
|
||||||
FIXME("(%p, %ld): stub\n", This, cb);
|
FIXME("(%p, %d): stub\n", This, cb);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ static ULONG WINAPI IReferenceClockImpl_AddRef (IReferenceClock *iface) {
|
||||||
IReferenceClockImpl *This = (IReferenceClockImpl *)iface;
|
IReferenceClockImpl *This = (IReferenceClockImpl *)iface;
|
||||||
ULONG refCount = InterlockedIncrement(&This->ref);
|
ULONG refCount = InterlockedIncrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p)->(ref before=%lu)\n", This, refCount - 1);
|
TRACE("(%p)->(ref before=%u)\n", This, refCount - 1);
|
||||||
|
|
||||||
DMUSIC_LockModule();
|
DMUSIC_LockModule();
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ static ULONG WINAPI IReferenceClockImpl_Release (IReferenceClock *iface) {
|
||||||
IReferenceClockImpl *This = (IReferenceClockImpl *)iface;
|
IReferenceClockImpl *This = (IReferenceClockImpl *)iface;
|
||||||
ULONG refCount = InterlockedDecrement(&This->ref);
|
ULONG refCount = InterlockedDecrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p)->(ref before=%lu)\n", This, refCount + 1);
|
TRACE("(%p)->(ref before=%u)\n", This, refCount + 1);
|
||||||
|
|
||||||
if (!refCount) {
|
if (!refCount) {
|
||||||
HeapFree(GetProcessHeap(), 0, This);
|
HeapFree(GetProcessHeap(), 0, This);
|
||||||
|
@ -84,7 +84,7 @@ static HRESULT WINAPI IReferenceClockImpl_AdvisePeriodic (IReferenceClock *iface
|
||||||
|
|
||||||
static HRESULT WINAPI IReferenceClockImpl_Unadvise (IReferenceClock *iface, DWORD dwAdviseCookie) {
|
static HRESULT WINAPI IReferenceClockImpl_Unadvise (IReferenceClock *iface, DWORD dwAdviseCookie) {
|
||||||
IReferenceClockImpl *This = (IReferenceClockImpl *)iface;
|
IReferenceClockImpl *This = (IReferenceClockImpl *)iface;
|
||||||
FIXME("(%p, %ld): stub\n", This, dwAdviseCookie);
|
FIXME("(%p, %d): stub\n", This, dwAdviseCookie);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,7 @@ static ULONG WINAPI IDirectMusicCollectionImpl_IUnknown_AddRef (LPUNKNOWN iface)
|
||||||
ICOM_THIS_MULTI(IDirectMusicCollectionImpl, UnknownVtbl, iface);
|
ICOM_THIS_MULTI(IDirectMusicCollectionImpl, UnknownVtbl, iface);
|
||||||
ULONG refCount = InterlockedIncrement(&This->ref);
|
ULONG refCount = InterlockedIncrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p)->(ref before=%lu)\n", This, refCount - 1);
|
TRACE("(%p)->(ref before=%u)\n", This, refCount - 1);
|
||||||
|
|
||||||
DMUSIC_LockModule();
|
DMUSIC_LockModule();
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ static ULONG WINAPI IDirectMusicCollectionImpl_IUnknown_Release (LPUNKNOWN iface
|
||||||
ICOM_THIS_MULTI(IDirectMusicCollectionImpl, UnknownVtbl, iface);
|
ICOM_THIS_MULTI(IDirectMusicCollectionImpl, UnknownVtbl, iface);
|
||||||
ULONG refCount = InterlockedDecrement(&This->ref);
|
ULONG refCount = InterlockedDecrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p)->(ref before=%lu)\n", This, refCount + 1);
|
TRACE("(%p)->(ref before=%u)\n", This, refCount + 1);
|
||||||
|
|
||||||
if (!refCount) {
|
if (!refCount) {
|
||||||
HeapFree(GetProcessHeap(), 0, This);
|
HeapFree(GetProcessHeap(), 0, This);
|
||||||
|
@ -112,7 +112,7 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IDirectMusicCollection_GetInstr
|
||||||
struct list *listEntry;
|
struct list *listEntry;
|
||||||
DWORD dwInstPatch;
|
DWORD dwInstPatch;
|
||||||
|
|
||||||
TRACE("(%p, %ld, %p)\n", This, dwPatch, ppInstrument);
|
TRACE("(%p, %d, %p)\n", This, dwPatch, ppInstrument);
|
||||||
|
|
||||||
LIST_FOR_EACH (listEntry, &This->Instruments) {
|
LIST_FOR_EACH (listEntry, &This->Instruments) {
|
||||||
tmpEntry = LIST_ENTRY(listEntry, DMUS_PRIVATE_INSTRUMENTENTRY, entry);
|
tmpEntry = LIST_ENTRY(listEntry, DMUS_PRIVATE_INSTRUMENTENTRY, entry);
|
||||||
|
@ -138,7 +138,7 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IDirectMusicCollection_EnumInst
|
||||||
struct list *listEntry;
|
struct list *listEntry;
|
||||||
DWORD dwLen;
|
DWORD dwLen;
|
||||||
|
|
||||||
TRACE("(%p, %ld, %p, %p, %ld)\n", This, dwIndex, pdwPatch, pwszName, dwNameLen);
|
TRACE("(%p, %d, %p, %p, %d)\n", This, dwIndex, pdwPatch, pwszName, dwNameLen);
|
||||||
LIST_FOR_EACH (listEntry, &This->Instruments) {
|
LIST_FOR_EACH (listEntry, &This->Instruments) {
|
||||||
tmpEntry = LIST_ENTRY(listEntry, DMUS_PRIVATE_INSTRUMENTENTRY, entry);
|
tmpEntry = LIST_ENTRY(listEntry, DMUS_PRIVATE_INSTRUMENTENTRY, entry);
|
||||||
if (r == dwIndex) {
|
if (r == dwIndex) {
|
||||||
|
@ -236,7 +236,7 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IDirectMusicObject_ParseDescrip
|
||||||
memcpy (&pDesc->guidClass, &CLSID_DirectMusicCollection, sizeof(CLSID));
|
memcpy (&pDesc->guidClass, &CLSID_DirectMusicCollection, sizeof(CLSID));
|
||||||
|
|
||||||
IStream_Read (pStream, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
IStream_Read (pStream, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
||||||
TRACE_(dmfile)(": %s chunk (size = 0x%04lx)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
TRACE_(dmfile)(": %s chunk (size = 0x%04x)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
||||||
switch (Chunk.fccID) {
|
switch (Chunk.fccID) {
|
||||||
case FOURCC_RIFF: {
|
case FOURCC_RIFF: {
|
||||||
IStream_Read (pStream, &Chunk.fccID, sizeof(FOURCC), NULL);
|
IStream_Read (pStream, &Chunk.fccID, sizeof(FOURCC), NULL);
|
||||||
|
@ -248,7 +248,7 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IDirectMusicObject_ParseDescrip
|
||||||
do {
|
do {
|
||||||
IStream_Read (pStream, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
IStream_Read (pStream, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
||||||
StreamCount += sizeof(FOURCC) + sizeof(DWORD) + Chunk.dwSize;
|
StreamCount += sizeof(FOURCC) + sizeof(DWORD) + Chunk.dwSize;
|
||||||
TRACE_(dmfile)(": %s chunk (size = 0x%04lx)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
TRACE_(dmfile)(": %s chunk (size = 0x%04x)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
||||||
switch (Chunk.fccID) {
|
switch (Chunk.fccID) {
|
||||||
case FOURCC_DLID: {
|
case FOURCC_DLID: {
|
||||||
TRACE_(dmfile)(": GUID chunk\n");
|
TRACE_(dmfile)(": GUID chunk\n");
|
||||||
|
@ -280,7 +280,7 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IDirectMusicObject_ParseDescrip
|
||||||
do {
|
do {
|
||||||
IStream_Read (pStream, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
IStream_Read (pStream, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
||||||
ListCount[0] += sizeof(FOURCC) + sizeof(DWORD) + Chunk.dwSize;
|
ListCount[0] += sizeof(FOURCC) + sizeof(DWORD) + Chunk.dwSize;
|
||||||
TRACE_(dmfile)(": %s chunk (size = 0x%04lx)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
TRACE_(dmfile)(": %s chunk (size = 0x%04x)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
||||||
switch (Chunk.fccID) {
|
switch (Chunk.fccID) {
|
||||||
case mmioFOURCC('I','N','A','M'):{
|
case mmioFOURCC('I','N','A','M'):{
|
||||||
CHAR szName[DMUS_MAX_NAME];
|
CHAR szName[DMUS_MAX_NAME];
|
||||||
|
@ -346,7 +346,7 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IDirectMusicObject_ParseDescrip
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
TRACE_(dmfile)(": ListCount[0] = %ld < ListSize[0] = %ld\n", ListCount[0], ListSize[0]);
|
TRACE_(dmfile)(": ListCount[0] = %d < ListSize[0] = %d\n", ListCount[0], ListSize[0]);
|
||||||
} while (ListCount[0] < ListSize[0]);
|
} while (ListCount[0] < ListSize[0]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -366,7 +366,7 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IDirectMusicObject_ParseDescrip
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
TRACE_(dmfile)(": StreamCount[0] = %ld < StreamSize[0] = %ld\n", StreamCount, StreamSize);
|
TRACE_(dmfile)(": StreamCount[0] = %d < StreamSize[0] = %d\n", StreamCount, StreamSize);
|
||||||
} while (StreamCount < StreamSize);
|
} while (StreamCount < StreamSize);
|
||||||
} else {
|
} else {
|
||||||
TRACE_(dmfile)(": unexpected chunk; loading failed)\n");
|
TRACE_(dmfile)(": unexpected chunk; loading failed)\n");
|
||||||
|
@ -439,7 +439,7 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IPersistStream_Load (LPPERSISTS
|
||||||
This->pStm = pStm;
|
This->pStm = pStm;
|
||||||
|
|
||||||
IStream_Read (pStm, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
IStream_Read (pStm, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
||||||
TRACE_(dmfile)(": %s chunk (size = 0x%04lx)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
TRACE_(dmfile)(": %s chunk (size = 0x%04x)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
||||||
switch (Chunk.fccID) {
|
switch (Chunk.fccID) {
|
||||||
case FOURCC_RIFF: {
|
case FOURCC_RIFF: {
|
||||||
IStream_Read (pStm, &Chunk.fccID, sizeof(FOURCC), NULL);
|
IStream_Read (pStm, &Chunk.fccID, sizeof(FOURCC), NULL);
|
||||||
|
@ -452,7 +452,7 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IPersistStream_Load (LPPERSISTS
|
||||||
do {
|
do {
|
||||||
IStream_Read (pStm, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
IStream_Read (pStm, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
||||||
StreamCount += sizeof(FOURCC) + sizeof(DWORD) + Chunk.dwSize;
|
StreamCount += sizeof(FOURCC) + sizeof(DWORD) + Chunk.dwSize;
|
||||||
TRACE_(dmfile)(": %s chunk (size = 0x%04lx)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
TRACE_(dmfile)(": %s chunk (size = 0x%04x)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
||||||
switch (Chunk.fccID) {
|
switch (Chunk.fccID) {
|
||||||
case FOURCC_COLH: {
|
case FOURCC_COLH: {
|
||||||
TRACE_(dmfile)(": collection header chunk\n");
|
TRACE_(dmfile)(": collection header chunk\n");
|
||||||
|
@ -492,7 +492,7 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IPersistStream_Load (LPPERSISTS
|
||||||
do {
|
do {
|
||||||
IStream_Read (pStm, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
IStream_Read (pStm, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
||||||
ListCount[0] += sizeof(FOURCC) + sizeof(DWORD) + Chunk.dwSize;
|
ListCount[0] += sizeof(FOURCC) + sizeof(DWORD) + Chunk.dwSize;
|
||||||
TRACE_(dmfile)(": %s chunk (size = 0x%04lx)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
TRACE_(dmfile)(": %s chunk (size = 0x%04x)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
||||||
switch (Chunk.fccID) {
|
switch (Chunk.fccID) {
|
||||||
case mmioFOURCC('I','N','A','M'): {
|
case mmioFOURCC('I','N','A','M'): {
|
||||||
CHAR szName[DMUS_MAX_NAME];
|
CHAR szName[DMUS_MAX_NAME];
|
||||||
|
@ -559,7 +559,7 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IPersistStream_Load (LPPERSISTS
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
TRACE_(dmfile)(": ListCount[0] = %ld < ListSize[0] = %ld\n", ListCount[0], ListSize[0]);
|
TRACE_(dmfile)(": ListCount[0] = %d < ListSize[0] = %d\n", ListCount[0], ListSize[0]);
|
||||||
} while (ListCount[0] < ListSize[0]);
|
} while (ListCount[0] < ListSize[0]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -577,7 +577,7 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IPersistStream_Load (LPPERSISTS
|
||||||
do {
|
do {
|
||||||
IStream_Read (pStm, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
IStream_Read (pStm, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
||||||
ListCount[0] += sizeof(FOURCC) + sizeof(DWORD) + Chunk.dwSize;
|
ListCount[0] += sizeof(FOURCC) + sizeof(DWORD) + Chunk.dwSize;
|
||||||
TRACE_(dmfile)(": %s chunk (size = 0x%04lx)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
TRACE_(dmfile)(": %s chunk (size = 0x%04x)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
||||||
switch (Chunk.fccID) {
|
switch (Chunk.fccID) {
|
||||||
case FOURCC_LIST: {
|
case FOURCC_LIST: {
|
||||||
IStream_Read (pStm, &Chunk.fccID, sizeof(FOURCC), NULL);
|
IStream_Read (pStm, &Chunk.fccID, sizeof(FOURCC), NULL);
|
||||||
|
@ -598,7 +598,7 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IPersistStream_Load (LPPERSISTS
|
||||||
do {
|
do {
|
||||||
IStream_Read (pStm, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
IStream_Read (pStm, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
||||||
ListCount[1] += sizeof(FOURCC) + sizeof(DWORD) + Chunk.dwSize;
|
ListCount[1] += sizeof(FOURCC) + sizeof(DWORD) + Chunk.dwSize;
|
||||||
TRACE_(dmfile)(": %s chunk (size = 0x%04lx)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
TRACE_(dmfile)(": %s chunk (size = 0x%04x)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
||||||
switch (Chunk.fccID) {
|
switch (Chunk.fccID) {
|
||||||
case FOURCC_INSH: {
|
case FOURCC_INSH: {
|
||||||
TRACE_(dmfile)(": instrument header chunk\n");
|
TRACE_(dmfile)(": instrument header chunk\n");
|
||||||
|
@ -634,7 +634,7 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IPersistStream_Load (LPPERSISTS
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
TRACE_(dmfile)(": ListCount[1] = %ld < ListSize[1] = %ld\n", ListCount[1], ListSize[1]);
|
TRACE_(dmfile)(": ListCount[1] = %d < ListSize[1] = %d\n", ListCount[1], ListSize[1]);
|
||||||
} while (ListCount[1] < ListSize[1]);
|
} while (ListCount[1] < ListSize[1]);
|
||||||
/* DEBUG: dumps whole instrument object tree: */
|
/* DEBUG: dumps whole instrument object tree: */
|
||||||
if (TRACE_ON(dmusic)) {
|
if (TRACE_ON(dmusic)) {
|
||||||
|
@ -643,11 +643,11 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IPersistStream_Load (LPPERSISTS
|
||||||
TRACE(" - GUID = %s\n", debugstr_dmguid(pInstrument->pInstrumentID));
|
TRACE(" - GUID = %s\n", debugstr_dmguid(pInstrument->pInstrumentID));
|
||||||
|
|
||||||
TRACE(" - Instrument header:\n");
|
TRACE(" - Instrument header:\n");
|
||||||
TRACE(" - cRegions: %ld\n", pInstrument->pHeader->cRegions);
|
TRACE(" - cRegions: %d\n", pInstrument->pHeader->cRegions);
|
||||||
TRACE(" - Locale:\n");
|
TRACE(" - Locale:\n");
|
||||||
TRACE(" - ulBank: %ld\n", pInstrument->pHeader->Locale.ulBank);
|
TRACE(" - ulBank: %d\n", pInstrument->pHeader->Locale.ulBank);
|
||||||
TRACE(" - ulInstrument: %ld\n", pInstrument->pHeader->Locale.ulInstrument);
|
TRACE(" - ulInstrument: %d\n", pInstrument->pHeader->Locale.ulInstrument);
|
||||||
TRACE(" => dwPatch: %ld\n", MIDILOCALE2Patch(&pInstrument->pHeader->Locale));
|
TRACE(" => dwPatch: %d\n", MIDILOCALE2Patch(&pInstrument->pHeader->Locale));
|
||||||
}
|
}
|
||||||
list_add_tail (&This->Instruments, &pNewInstrument->entry);
|
list_add_tail (&This->Instruments, &pNewInstrument->entry);
|
||||||
}
|
}
|
||||||
|
@ -663,7 +663,7 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IPersistStream_Load (LPPERSISTS
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
TRACE_(dmfile)(": ListCount[0] = %ld < ListSize[0] = %ld\n", ListCount[0], ListSize[0]);
|
TRACE_(dmfile)(": ListCount[0] = %d < ListSize[0] = %d\n", ListCount[0], ListSize[0]);
|
||||||
} while (ListCount[0] < ListSize[0]);
|
} while (ListCount[0] < ListSize[0]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -683,7 +683,7 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IPersistStream_Load (LPPERSISTS
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
TRACE_(dmfile)(": StreamCount = %ld < StreamSize = %ld\n", StreamCount, StreamSize);
|
TRACE_(dmfile)(": StreamCount = %d < StreamSize = %d\n", StreamCount, StreamSize);
|
||||||
} while (StreamCount < StreamSize);
|
} while (StreamCount < StreamSize);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -721,7 +721,7 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IPersistStream_Load (LPPERSISTS
|
||||||
TRACE(" - Name = %s\n", debugstr_w(This->pDesc->wszName));
|
TRACE(" - Name = %s\n", debugstr_w(This->pDesc->wszName));
|
||||||
|
|
||||||
TRACE(" - Collection header:\n");
|
TRACE(" - Collection header:\n");
|
||||||
TRACE(" - cInstruments: %ld\n", This->pHeader->cInstruments);
|
TRACE(" - cInstruments: %d\n", This->pHeader->cInstruments);
|
||||||
TRACE(" - Instruments:\n");
|
TRACE(" - Instruments:\n");
|
||||||
|
|
||||||
LIST_FOR_EACH (listEntry, &This->Instruments) {
|
LIST_FOR_EACH (listEntry, &This->Instruments) {
|
||||||
|
|
|
@ -42,7 +42,7 @@ static ULONG WINAPI IDirectMusic8Impl_AddRef (LPDIRECTMUSIC8 iface) {
|
||||||
IDirectMusic8Impl *This = (IDirectMusic8Impl *)iface;
|
IDirectMusic8Impl *This = (IDirectMusic8Impl *)iface;
|
||||||
ULONG refCount = InterlockedIncrement(&This->ref);
|
ULONG refCount = InterlockedIncrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p)->(ref before=%lu)\n", This, refCount - 1);
|
TRACE("(%p)->(ref before=%u)\n", This, refCount - 1);
|
||||||
|
|
||||||
DMUSIC_LockModule();
|
DMUSIC_LockModule();
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ static ULONG WINAPI IDirectMusic8Impl_Release (LPDIRECTMUSIC8 iface) {
|
||||||
IDirectMusic8Impl *This = (IDirectMusic8Impl *)iface;
|
IDirectMusic8Impl *This = (IDirectMusic8Impl *)iface;
|
||||||
ULONG refCount = InterlockedDecrement(&This->ref);
|
ULONG refCount = InterlockedDecrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p)->(ref before=%lu)\n", This, refCount + 1);
|
TRACE("(%p)->(ref before=%u)\n", This, refCount + 1);
|
||||||
|
|
||||||
if (!refCount) {
|
if (!refCount) {
|
||||||
HeapFree(GetProcessHeap(), 0, This);
|
HeapFree(GetProcessHeap(), 0, This);
|
||||||
|
@ -67,7 +67,7 @@ static ULONG WINAPI IDirectMusic8Impl_Release (LPDIRECTMUSIC8 iface) {
|
||||||
/* IDirectMusic8Impl IDirectMusic part: */
|
/* IDirectMusic8Impl IDirectMusic part: */
|
||||||
static HRESULT WINAPI IDirectMusic8Impl_EnumPort(LPDIRECTMUSIC8 iface, DWORD dwIndex, LPDMUS_PORTCAPS pPortCaps) {
|
static HRESULT WINAPI IDirectMusic8Impl_EnumPort(LPDIRECTMUSIC8 iface, DWORD dwIndex, LPDMUS_PORTCAPS pPortCaps) {
|
||||||
IDirectMusic8Impl *This = (IDirectMusic8Impl *)iface;
|
IDirectMusic8Impl *This = (IDirectMusic8Impl *)iface;
|
||||||
TRACE("(%p, %ld, %p)\n", This, dwIndex, pPortCaps);
|
TRACE("(%p, %d, %p)\n", This, dwIndex, pPortCaps);
|
||||||
if (NULL == pPortCaps) { return E_POINTER; }
|
if (NULL == pPortCaps) { return E_POINTER; }
|
||||||
/* i guess the first port shown is always software synthesizer */
|
/* i guess the first port shown is always software synthesizer */
|
||||||
if (dwIndex == 0)
|
if (dwIndex == 0)
|
||||||
|
@ -144,7 +144,7 @@ static HRESULT WINAPI IDirectMusic8Impl_CreatePort (LPDIRECTMUSIC8 iface, REFCLS
|
||||||
|
|
||||||
static HRESULT WINAPI IDirectMusic8Impl_EnumMasterClock (LPDIRECTMUSIC8 iface, DWORD dwIndex, LPDMUS_CLOCKINFO lpClockInfo) {
|
static HRESULT WINAPI IDirectMusic8Impl_EnumMasterClock (LPDIRECTMUSIC8 iface, DWORD dwIndex, LPDMUS_CLOCKINFO lpClockInfo) {
|
||||||
IDirectMusic8Impl *This = (IDirectMusic8Impl *)iface;
|
IDirectMusic8Impl *This = (IDirectMusic8Impl *)iface;
|
||||||
FIXME("(%p, %ld, %p): stub\n", This, dwIndex, lpClockInfo);
|
FIXME("(%p, %d, %p): stub\n", This, dwIndex, lpClockInfo);
|
||||||
return S_FALSE;
|
return S_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -540,7 +540,7 @@ const char *debugstr_dmreturn (DWORD code) {
|
||||||
return codes[i].name;
|
return codes[i].name;
|
||||||
}
|
}
|
||||||
/* if we didn't find it, return value */
|
/* if we didn't find it, return value */
|
||||||
return wine_dbg_sprintf("0x%08lx", code);
|
return wine_dbg_sprintf("0x%08x", code);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* generic flag-dumping function */
|
/* generic flag-dumping function */
|
||||||
|
@ -587,7 +587,7 @@ const char *debugstr_DMUS_OBJECTDESC (LPDMUS_OBJECTDESC pDesc) {
|
||||||
char buffer[1024] = "", *ptr = &buffer[0];
|
char buffer[1024] = "", *ptr = &buffer[0];
|
||||||
|
|
||||||
ptr += sprintf(ptr, "DMUS_OBJECTDESC (%p):\n", pDesc);
|
ptr += sprintf(ptr, "DMUS_OBJECTDESC (%p):\n", pDesc);
|
||||||
ptr += sprintf(ptr, " - dwSize = %ld\n", pDesc->dwSize);
|
ptr += sprintf(ptr, " - dwSize = %d\n", pDesc->dwSize);
|
||||||
ptr += sprintf(ptr, " - dwValidData = %s\n", debugstr_DMUS_OBJ_FLAGS (pDesc->dwValidData));
|
ptr += sprintf(ptr, " - dwValidData = %s\n", debugstr_DMUS_OBJ_FLAGS (pDesc->dwValidData));
|
||||||
if (pDesc->dwValidData & DMUS_OBJ_CLASS) ptr += sprintf(ptr, " - guidClass = %s\n", debugstr_dmguid(&pDesc->guidClass));
|
if (pDesc->dwValidData & DMUS_OBJ_CLASS) ptr += sprintf(ptr, " - guidClass = %s\n", debugstr_dmguid(&pDesc->guidClass));
|
||||||
if (pDesc->dwValidData & DMUS_OBJ_OBJECT) ptr += sprintf(ptr, " - guidObject = %s\n", debugstr_guid(&pDesc->guidObject));
|
if (pDesc->dwValidData & DMUS_OBJ_OBJECT) ptr += sprintf(ptr, " - guidObject = %s\n", debugstr_guid(&pDesc->guidObject));
|
||||||
|
|
|
@ -40,7 +40,7 @@ static ULONG WINAPI IDirectMusicDownloadImpl_AddRef (LPDIRECTMUSICDOWNLOAD iface
|
||||||
IDirectMusicDownloadImpl *This = (IDirectMusicDownloadImpl *)iface;
|
IDirectMusicDownloadImpl *This = (IDirectMusicDownloadImpl *)iface;
|
||||||
ULONG refCount = InterlockedIncrement(&This->ref);
|
ULONG refCount = InterlockedIncrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p)->(ref before=%lu)\n", This, refCount - 1);
|
TRACE("(%p)->(ref before=%u)\n", This, refCount - 1);
|
||||||
|
|
||||||
DMUSIC_LockModule();
|
DMUSIC_LockModule();
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ static ULONG WINAPI IDirectMusicDownloadImpl_Release (LPDIRECTMUSICDOWNLOAD ifac
|
||||||
IDirectMusicDownloadImpl *This = (IDirectMusicDownloadImpl *)iface;
|
IDirectMusicDownloadImpl *This = (IDirectMusicDownloadImpl *)iface;
|
||||||
ULONG refCount = InterlockedDecrement(&This->ref);
|
ULONG refCount = InterlockedDecrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p)->(ref before=%lu)\n", This, refCount + 1);
|
TRACE("(%p)->(ref before=%u)\n", This, refCount + 1);
|
||||||
|
|
||||||
if (!refCount) {
|
if (!refCount) {
|
||||||
HeapFree(GetProcessHeap(), 0, This);
|
HeapFree(GetProcessHeap(), 0, This);
|
||||||
|
|
|
@ -40,7 +40,7 @@ static ULONG WINAPI IDirectMusicDownloadedInstrumentImpl_AddRef (LPDIRECTMUSICDO
|
||||||
IDirectMusicDownloadedInstrumentImpl *This = (IDirectMusicDownloadedInstrumentImpl *)iface;
|
IDirectMusicDownloadedInstrumentImpl *This = (IDirectMusicDownloadedInstrumentImpl *)iface;
|
||||||
ULONG refCount = InterlockedIncrement(&This->ref);
|
ULONG refCount = InterlockedIncrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p)->(ref before=%lu)\n", This, refCount - 1);
|
TRACE("(%p)->(ref before=%u)\n", This, refCount - 1);
|
||||||
|
|
||||||
DMUSIC_LockModule();
|
DMUSIC_LockModule();
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ static ULONG WINAPI IDirectMusicDownloadedInstrumentImpl_Release (LPDIRECTMUSICD
|
||||||
IDirectMusicDownloadedInstrumentImpl *This = (IDirectMusicDownloadedInstrumentImpl *)iface;
|
IDirectMusicDownloadedInstrumentImpl *This = (IDirectMusicDownloadedInstrumentImpl *)iface;
|
||||||
ULONG refCount = InterlockedDecrement(&This->ref);
|
ULONG refCount = InterlockedDecrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p)->(ref before=%lu)\n", This, refCount + 1);
|
TRACE("(%p)->(ref before=%u)\n", This, refCount + 1);
|
||||||
|
|
||||||
if (!refCount) {
|
if (!refCount) {
|
||||||
HeapFree(GetProcessHeap(), 0, This);
|
HeapFree(GetProcessHeap(), 0, This);
|
||||||
|
|
|
@ -59,7 +59,7 @@ static ULONG WINAPI IDirectMusicInstrumentImpl_IUnknown_AddRef (LPUNKNOWN iface)
|
||||||
ICOM_THIS_MULTI(IDirectMusicInstrumentImpl, UnknownVtbl, iface);
|
ICOM_THIS_MULTI(IDirectMusicInstrumentImpl, UnknownVtbl, iface);
|
||||||
ULONG refCount = InterlockedIncrement(&This->ref);
|
ULONG refCount = InterlockedIncrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p)->(ref before=%lu)\n", This, refCount - 1);
|
TRACE("(%p)->(ref before=%u)\n", This, refCount - 1);
|
||||||
|
|
||||||
DMUSIC_LockModule();
|
DMUSIC_LockModule();
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ static ULONG WINAPI IDirectMusicInstrumentImpl_IUnknown_Release (LPUNKNOWN iface
|
||||||
ICOM_THIS_MULTI(IDirectMusicInstrumentImpl, UnknownVtbl, iface);
|
ICOM_THIS_MULTI(IDirectMusicInstrumentImpl, UnknownVtbl, iface);
|
||||||
ULONG refCount = InterlockedDecrement(&This->ref);
|
ULONG refCount = InterlockedDecrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p)->(ref before=%lu)\n", This, refCount + 1);
|
TRACE("(%p)->(ref before=%u)\n", This, refCount + 1);
|
||||||
|
|
||||||
if (!refCount) {
|
if (!refCount) {
|
||||||
HeapFree(GetProcessHeap(), 0, This);
|
HeapFree(GetProcessHeap(), 0, This);
|
||||||
|
@ -112,7 +112,7 @@ static HRESULT WINAPI IDirectMusicInstrumentImpl_IDirectMusicInstrument_GetPatch
|
||||||
|
|
||||||
static HRESULT WINAPI IDirectMusicInstrumentImpl_IDirectMusicInstrument_SetPatch (LPDIRECTMUSICINSTRUMENT iface, DWORD dwPatch) {
|
static HRESULT WINAPI IDirectMusicInstrumentImpl_IDirectMusicInstrument_SetPatch (LPDIRECTMUSICINSTRUMENT iface, DWORD dwPatch) {
|
||||||
ICOM_THIS_MULTI(IDirectMusicInstrumentImpl, InstrumentVtbl, iface);
|
ICOM_THIS_MULTI(IDirectMusicInstrumentImpl, InstrumentVtbl, iface);
|
||||||
TRACE("(%p, %ld): stub\n", This, dwPatch);
|
TRACE("(%p, %d): stub\n", This, dwPatch);
|
||||||
Patch2MIDILOCALE(dwPatch, &This->pHeader->Locale);
|
Patch2MIDILOCALE(dwPatch, &This->pHeader->Locale);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
@ -156,7 +156,7 @@ HRESULT WINAPI IDirectMusicInstrumentImpl_Custom_Load (LPDIRECTMUSICINSTRUMENT i
|
||||||
IStream_Seek (pStm, This->liInstrumentPosition, STREAM_SEEK_SET, NULL);
|
IStream_Seek (pStm, This->liInstrumentPosition, STREAM_SEEK_SET, NULL);
|
||||||
|
|
||||||
IStream_Read (pStm, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
IStream_Read (pStm, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
||||||
TRACE_(dmfile)(": %s chunk (size = 0x%04lx)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
TRACE_(dmfile)(": %s chunk (size = 0x%04x)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
||||||
switch (Chunk.fccID) {
|
switch (Chunk.fccID) {
|
||||||
case FOURCC_LIST: {
|
case FOURCC_LIST: {
|
||||||
IStream_Read (pStm, &Chunk.fccID, sizeof(FOURCC), NULL);
|
IStream_Read (pStm, &Chunk.fccID, sizeof(FOURCC), NULL);
|
||||||
|
@ -169,7 +169,7 @@ HRESULT WINAPI IDirectMusicInstrumentImpl_Custom_Load (LPDIRECTMUSICINSTRUMENT i
|
||||||
do {
|
do {
|
||||||
IStream_Read (pStm, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
IStream_Read (pStm, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
||||||
ListCount[0] += sizeof(FOURCC) + sizeof(DWORD) + Chunk.dwSize;
|
ListCount[0] += sizeof(FOURCC) + sizeof(DWORD) + Chunk.dwSize;
|
||||||
TRACE_(dmfile)(": %s chunk (size = 0x%04lx)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
TRACE_(dmfile)(": %s chunk (size = 0x%04x)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
||||||
switch (Chunk.fccID) {
|
switch (Chunk.fccID) {
|
||||||
case FOURCC_INSH: {
|
case FOURCC_INSH: {
|
||||||
TRACE_(dmfile)(": instrument header chunk\n");
|
TRACE_(dmfile)(": instrument header chunk\n");
|
||||||
|
@ -194,7 +194,7 @@ HRESULT WINAPI IDirectMusicInstrumentImpl_Custom_Load (LPDIRECTMUSICINSTRUMENT i
|
||||||
do {
|
do {
|
||||||
IStream_Read (pStm, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
IStream_Read (pStm, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
||||||
ListCount[1] += sizeof(FOURCC) + sizeof(DWORD) + Chunk.dwSize;
|
ListCount[1] += sizeof(FOURCC) + sizeof(DWORD) + Chunk.dwSize;
|
||||||
TRACE_(dmfile)(": %s chunk (size = 0x%04lx)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
TRACE_(dmfile)(": %s chunk (size = 0x%04x)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
||||||
switch (Chunk.fccID) {
|
switch (Chunk.fccID) {
|
||||||
case FOURCC_LIST: {
|
case FOURCC_LIST: {
|
||||||
IStream_Read (pStm, &Chunk.fccID, sizeof(FOURCC), NULL);
|
IStream_Read (pStm, &Chunk.fccID, sizeof(FOURCC), NULL);
|
||||||
|
@ -213,7 +213,7 @@ HRESULT WINAPI IDirectMusicInstrumentImpl_Custom_Load (LPDIRECTMUSICINSTRUMENT i
|
||||||
do {
|
do {
|
||||||
IStream_Read (pStm, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
IStream_Read (pStm, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
||||||
ListCount[2] += sizeof(FOURCC) + sizeof(DWORD) + Chunk.dwSize;
|
ListCount[2] += sizeof(FOURCC) + sizeof(DWORD) + Chunk.dwSize;
|
||||||
TRACE_(dmfile)(": %s chunk (size = 0x%04lx)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
TRACE_(dmfile)(": %s chunk (size = 0x%04x)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
||||||
switch (Chunk.fccID) {
|
switch (Chunk.fccID) {
|
||||||
case FOURCC_RGNH: {
|
case FOURCC_RGNH: {
|
||||||
TRACE_(dmfile)(": region header chunk\n");
|
TRACE_(dmfile)(": region header chunk\n");
|
||||||
|
@ -243,7 +243,7 @@ HRESULT WINAPI IDirectMusicInstrumentImpl_Custom_Load (LPDIRECTMUSICINSTRUMENT i
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
TRACE_(dmfile)(": ListCount[2] = %ld < ListSize[2] = %ld\n", ListCount[2], ListSize[2]);
|
TRACE_(dmfile)(": ListCount[2] = %d < ListSize[2] = %d\n", ListCount[2], ListSize[2]);
|
||||||
} while (ListCount[2] < ListSize[2]);
|
} while (ListCount[2] < ListSize[2]);
|
||||||
FIXME(": need to write temporary data to instrument data\n");
|
FIXME(": need to write temporary data to instrument data\n");
|
||||||
break;
|
break;
|
||||||
|
@ -264,7 +264,7 @@ HRESULT WINAPI IDirectMusicInstrumentImpl_Custom_Load (LPDIRECTMUSICINSTRUMENT i
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
TRACE_(dmfile)(": ListCount[1] = %ld < ListSize[1] = %ld\n", ListCount[1], ListSize[1]);
|
TRACE_(dmfile)(": ListCount[1] = %d < ListSize[1] = %d\n", ListCount[1], ListSize[1]);
|
||||||
} while (ListCount[1] < ListSize[1]);
|
} while (ListCount[1] < ListSize[1]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -273,7 +273,7 @@ HRESULT WINAPI IDirectMusicInstrumentImpl_Custom_Load (LPDIRECTMUSICINSTRUMENT i
|
||||||
do {
|
do {
|
||||||
IStream_Read (pStm, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
IStream_Read (pStm, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
||||||
ListCount[1] += sizeof(FOURCC) + sizeof(DWORD) + Chunk.dwSize;
|
ListCount[1] += sizeof(FOURCC) + sizeof(DWORD) + Chunk.dwSize;
|
||||||
TRACE_(dmfile)(": %s chunk (size = 0x%04lx)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
TRACE_(dmfile)(": %s chunk (size = 0x%04x)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
||||||
switch (Chunk.fccID) {
|
switch (Chunk.fccID) {
|
||||||
case FOURCC_ART1: {
|
case FOURCC_ART1: {
|
||||||
/* temporary structures */
|
/* temporary structures */
|
||||||
|
@ -295,7 +295,7 @@ HRESULT WINAPI IDirectMusicInstrumentImpl_Custom_Load (LPDIRECTMUSICINSTRUMENT i
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
TRACE_(dmfile)(": ListCount[1] = %ld < ListSize[1] = %ld\n", ListCount[1], ListSize[1]);
|
TRACE_(dmfile)(": ListCount[1] = %d < ListSize[1] = %d\n", ListCount[1], ListSize[1]);
|
||||||
} while (ListCount[1] < ListSize[1]);
|
} while (ListCount[1] < ListSize[1]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -304,7 +304,7 @@ HRESULT WINAPI IDirectMusicInstrumentImpl_Custom_Load (LPDIRECTMUSICINSTRUMENT i
|
||||||
do {
|
do {
|
||||||
IStream_Read (pStm, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
IStream_Read (pStm, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
||||||
ListCount[1] += sizeof(FOURCC) + sizeof(DWORD) + Chunk.dwSize;
|
ListCount[1] += sizeof(FOURCC) + sizeof(DWORD) + Chunk.dwSize;
|
||||||
TRACE_(dmfile)(": %s chunk (size = 0x%04lx)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
TRACE_(dmfile)(": %s chunk (size = 0x%04x)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
||||||
switch (Chunk.fccID) {
|
switch (Chunk.fccID) {
|
||||||
case mmioFOURCC('I','N','A','M'): {
|
case mmioFOURCC('I','N','A','M'): {
|
||||||
TRACE_(dmfile)(": name chunk (ignored)\n");
|
TRACE_(dmfile)(": name chunk (ignored)\n");
|
||||||
|
@ -370,7 +370,7 @@ HRESULT WINAPI IDirectMusicInstrumentImpl_Custom_Load (LPDIRECTMUSICINSTRUMENT i
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
TRACE_(dmfile)(": ListCount[1] = %ld < ListSize[1] = %ld\n", ListCount[1], ListSize[1]);
|
TRACE_(dmfile)(": ListCount[1] = %d < ListSize[1] = %d\n", ListCount[1], ListSize[1]);
|
||||||
} while (ListCount[1] < ListSize[1]);
|
} while (ListCount[1] < ListSize[1]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -391,7 +391,7 @@ HRESULT WINAPI IDirectMusicInstrumentImpl_Custom_Load (LPDIRECTMUSICINSTRUMENT i
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
TRACE_(dmfile)(": ListCount[0] = %ld < ListSize[0] = %ld\n", ListCount[0], ListSize[0]);
|
TRACE_(dmfile)(": ListCount[0] = %d < ListSize[0] = %d\n", ListCount[0], ListSize[0]);
|
||||||
} while (ListCount[0] < ListSize[0]);
|
} while (ListCount[0] < ListSize[0]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ static ULONG WINAPI IDirectMusicPortImpl_AddRef (LPDIRECTMUSICPORT iface) {
|
||||||
IDirectMusicPortImpl *This = (IDirectMusicPortImpl *)iface;
|
IDirectMusicPortImpl *This = (IDirectMusicPortImpl *)iface;
|
||||||
ULONG refCount = InterlockedIncrement(&This->ref);
|
ULONG refCount = InterlockedIncrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p)->(ref before=%lu)\n", This, refCount - 1);
|
TRACE("(%p)->(ref before=%u)\n", This, refCount - 1);
|
||||||
|
|
||||||
DMUSIC_LockModule();
|
DMUSIC_LockModule();
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ static ULONG WINAPI IDirectMusicPortImpl_Release (LPDIRECTMUSICPORT iface) {
|
||||||
IDirectMusicPortImpl *This = (IDirectMusicPortImpl *)iface;
|
IDirectMusicPortImpl *This = (IDirectMusicPortImpl *)iface;
|
||||||
ULONG refCount = InterlockedDecrement(&This->ref);
|
ULONG refCount = InterlockedDecrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p)->(ref before=%lu)\n", This, refCount + 1);
|
TRACE("(%p)->(ref before=%u)\n", This, refCount + 1);
|
||||||
|
|
||||||
if (!refCount) {
|
if (!refCount) {
|
||||||
HeapFree(GetProcessHeap(), 0, This);
|
HeapFree(GetProcessHeap(), 0, This);
|
||||||
|
@ -82,7 +82,7 @@ static HRESULT WINAPI IDirectMusicPortImpl_Read (LPDIRECTMUSICPORT iface, LPDIRE
|
||||||
|
|
||||||
static HRESULT WINAPI IDirectMusicPortImpl_DownloadInstrument (LPDIRECTMUSICPORT iface, IDirectMusicInstrument* pInstrument, IDirectMusicDownloadedInstrument** ppDownloadedInstrument, DMUS_NOTERANGE* pNoteRanges, DWORD dwNumNoteRanges) {
|
static HRESULT WINAPI IDirectMusicPortImpl_DownloadInstrument (LPDIRECTMUSICPORT iface, IDirectMusicInstrument* pInstrument, IDirectMusicDownloadedInstrument** ppDownloadedInstrument, DMUS_NOTERANGE* pNoteRanges, DWORD dwNumNoteRanges) {
|
||||||
IDirectMusicPortImpl *This = (IDirectMusicPortImpl *)iface;
|
IDirectMusicPortImpl *This = (IDirectMusicPortImpl *)iface;
|
||||||
FIXME("(%p, %p, %p, %p, %ld): stub\n", This, pInstrument, ppDownloadedInstrument, pNoteRanges, dwNumNoteRanges);
|
FIXME("(%p, %p, %p, %p, %d): stub\n", This, pInstrument, ppDownloadedInstrument, pNoteRanges, dwNumNoteRanges);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -121,13 +121,13 @@ static HRESULT WINAPI IDirectMusicPortImpl_GetCaps (LPDIRECTMUSICPORT iface, LPD
|
||||||
|
|
||||||
static HRESULT WINAPI IDirectMusicPortImpl_DeviceIoControl (LPDIRECTMUSICPORT iface, DWORD dwIoControlCode, LPVOID lpInBuffer, DWORD nInBufferSize, LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesReturned, LPOVERLAPPED lpOverlapped) {
|
static HRESULT WINAPI IDirectMusicPortImpl_DeviceIoControl (LPDIRECTMUSICPORT iface, DWORD dwIoControlCode, LPVOID lpInBuffer, DWORD nInBufferSize, LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesReturned, LPOVERLAPPED lpOverlapped) {
|
||||||
IDirectMusicPortImpl *This = (IDirectMusicPortImpl *)iface;
|
IDirectMusicPortImpl *This = (IDirectMusicPortImpl *)iface;
|
||||||
FIXME("(%p, %ld, %p, %ld, %p, %ld, %p, %p): stub\n", This, dwIoControlCode, lpInBuffer, nInBufferSize, lpOutBuffer, nOutBufferSize, lpBytesReturned, lpOverlapped);
|
FIXME("(%p, %d, %p, %d, %p, %d, %p, %p): stub\n", This, dwIoControlCode, lpInBuffer, nInBufferSize, lpOutBuffer, nOutBufferSize, lpBytesReturned, lpOverlapped);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI IDirectMusicPortImpl_SetNumChannelGroups (LPDIRECTMUSICPORT iface, DWORD dwChannelGroups) {
|
static HRESULT WINAPI IDirectMusicPortImpl_SetNumChannelGroups (LPDIRECTMUSICPORT iface, DWORD dwChannelGroups) {
|
||||||
IDirectMusicPortImpl *This = (IDirectMusicPortImpl *)iface;
|
IDirectMusicPortImpl *This = (IDirectMusicPortImpl *)iface;
|
||||||
FIXME("(%p, %ld): semi-stub\n", This, dwChannelGroups);
|
FIXME("(%p, %d): semi-stub\n", This, dwChannelGroups);
|
||||||
This->nrofgroups = dwChannelGroups;
|
This->nrofgroups = dwChannelGroups;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
@ -148,9 +148,9 @@ HRESULT WINAPI IDirectMusicPortImpl_Activate (LPDIRECTMUSICPORT iface, BOOL fAct
|
||||||
|
|
||||||
static HRESULT WINAPI IDirectMusicPortImpl_SetChannelPriority (LPDIRECTMUSICPORT iface, DWORD dwChannelGroup, DWORD dwChannel, DWORD dwPriority) {
|
static HRESULT WINAPI IDirectMusicPortImpl_SetChannelPriority (LPDIRECTMUSICPORT iface, DWORD dwChannelGroup, DWORD dwChannel, DWORD dwPriority) {
|
||||||
IDirectMusicPortImpl *This = (IDirectMusicPortImpl *)iface;
|
IDirectMusicPortImpl *This = (IDirectMusicPortImpl *)iface;
|
||||||
FIXME("(%p, %ld, %ld, %ld): semi-stub\n", This, dwChannelGroup, dwChannel, dwPriority);
|
FIXME("(%p, %d, %d, %d): semi-stub\n", This, dwChannelGroup, dwChannel, dwPriority);
|
||||||
if (dwChannel > 16) {
|
if (dwChannel > 16) {
|
||||||
WARN("isn't there supposed to be 16 channels (no. %ld requested)?! (faking as it is ok)\n", dwChannel);
|
WARN("isn't there supposed to be 16 channels (no. %d requested)?! (faking as it is ok)\n", dwChannel);
|
||||||
/*return E_INVALIDARG;*/
|
/*return E_INVALIDARG;*/
|
||||||
}
|
}
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
@ -158,7 +158,7 @@ static HRESULT WINAPI IDirectMusicPortImpl_SetChannelPriority (LPDIRECTMUSICPORT
|
||||||
|
|
||||||
static HRESULT WINAPI IDirectMusicPortImpl_GetChannelPriority (LPDIRECTMUSICPORT iface, DWORD dwChannelGroup, DWORD dwChannel, LPDWORD pdwPriority) {
|
static HRESULT WINAPI IDirectMusicPortImpl_GetChannelPriority (LPDIRECTMUSICPORT iface, DWORD dwChannelGroup, DWORD dwChannel, LPDWORD pdwPriority) {
|
||||||
IDirectMusicPortImpl *This = (IDirectMusicPortImpl *)iface;
|
IDirectMusicPortImpl *This = (IDirectMusicPortImpl *)iface;
|
||||||
TRACE("(%p, %ld, %ld, %p)\n", This, dwChannelGroup, dwChannel, pdwPriority);
|
TRACE("(%p, %d, %d, %p)\n", This, dwChannelGroup, dwChannel, pdwPriority);
|
||||||
*pdwPriority = This->group[dwChannelGroup-1].channel[dwChannel].priority;
|
*pdwPriority = This->group[dwChannelGroup-1].channel[dwChannel].priority;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ static ULONG WINAPI IDirectMusicPortDownloadImpl_AddRef (LPDIRECTMUSICPORTDOWNLO
|
||||||
IDirectMusicPortDownloadImpl *This = (IDirectMusicPortDownloadImpl *)iface;
|
IDirectMusicPortDownloadImpl *This = (IDirectMusicPortDownloadImpl *)iface;
|
||||||
ULONG refCount = InterlockedIncrement(&This->ref);
|
ULONG refCount = InterlockedIncrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p)->(ref before=%lu)\n", This, refCount - 1);
|
TRACE("(%p)->(ref before=%u)\n", This, refCount - 1);
|
||||||
|
|
||||||
DMUSIC_LockModule();
|
DMUSIC_LockModule();
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ static ULONG WINAPI IDirectMusicPortDownloadImpl_Release (LPDIRECTMUSICPORTDOWNL
|
||||||
IDirectMusicPortDownloadImpl *This = (IDirectMusicPortDownloadImpl *)iface;
|
IDirectMusicPortDownloadImpl *This = (IDirectMusicPortDownloadImpl *)iface;
|
||||||
ULONG refCount = InterlockedDecrement(&This->ref);
|
ULONG refCount = InterlockedDecrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p)->(ref before=%lu)\n", This, refCount + 1);
|
TRACE("(%p)->(ref before=%u)\n", This, refCount + 1);
|
||||||
|
|
||||||
if (!refCount) {
|
if (!refCount) {
|
||||||
HeapFree(GetProcessHeap(), 0, This);
|
HeapFree(GetProcessHeap(), 0, This);
|
||||||
|
@ -64,19 +64,19 @@ static ULONG WINAPI IDirectMusicPortDownloadImpl_Release (LPDIRECTMUSICPORTDOWNL
|
||||||
/* IDirectMusicPortDownload Interface follow: */
|
/* IDirectMusicPortDownload Interface follow: */
|
||||||
static HRESULT WINAPI IDirectMusicPortDownloadImpl_GetBuffer (LPDIRECTMUSICPORTDOWNLOAD iface, DWORD dwDLId, IDirectMusicDownload** ppIDMDownload) {
|
static HRESULT WINAPI IDirectMusicPortDownloadImpl_GetBuffer (LPDIRECTMUSICPORTDOWNLOAD iface, DWORD dwDLId, IDirectMusicDownload** ppIDMDownload) {
|
||||||
IDirectMusicPortDownloadImpl *This = (IDirectMusicPortDownloadImpl *)iface;
|
IDirectMusicPortDownloadImpl *This = (IDirectMusicPortDownloadImpl *)iface;
|
||||||
FIXME("(%p, %ld, %p): stub\n", This, dwDLId, ppIDMDownload);
|
FIXME("(%p, %d, %p): stub\n", This, dwDLId, ppIDMDownload);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI IDirectMusicPortDownloadImpl_AllocateBuffer (LPDIRECTMUSICPORTDOWNLOAD iface, DWORD dwSize, IDirectMusicDownload** ppIDMDownload) {
|
static HRESULT WINAPI IDirectMusicPortDownloadImpl_AllocateBuffer (LPDIRECTMUSICPORTDOWNLOAD iface, DWORD dwSize, IDirectMusicDownload** ppIDMDownload) {
|
||||||
IDirectMusicPortDownloadImpl *This = (IDirectMusicPortDownloadImpl *)iface;
|
IDirectMusicPortDownloadImpl *This = (IDirectMusicPortDownloadImpl *)iface;
|
||||||
FIXME("(%p, %ld, %p): stub\n", This, dwSize, ppIDMDownload);
|
FIXME("(%p, %d, %p): stub\n", This, dwSize, ppIDMDownload);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI IDirectMusicPortDownloadImpl_GetDLId (LPDIRECTMUSICPORTDOWNLOAD iface, DWORD* pdwStartDLId, DWORD dwCount) {
|
static HRESULT WINAPI IDirectMusicPortDownloadImpl_GetDLId (LPDIRECTMUSICPORTDOWNLOAD iface, DWORD* pdwStartDLId, DWORD dwCount) {
|
||||||
IDirectMusicPortDownloadImpl *This = (IDirectMusicPortDownloadImpl *)iface;
|
IDirectMusicPortDownloadImpl *This = (IDirectMusicPortDownloadImpl *)iface;
|
||||||
FIXME("(%p, %p, %ld): stub\n", This, pdwStartDLId, dwCount);
|
FIXME("(%p, %p, %d): stub\n", This, pdwStartDLId, dwCount);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ static ULONG WINAPI IDirectMusicThruImpl_AddRef (LPDIRECTMUSICTHRU iface) {
|
||||||
IDirectMusicThruImpl *This = (IDirectMusicThruImpl *)iface;
|
IDirectMusicThruImpl *This = (IDirectMusicThruImpl *)iface;
|
||||||
ULONG refCount = InterlockedIncrement(&This->ref);
|
ULONG refCount = InterlockedIncrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p)->(ref before=%lu)\n", This, refCount - 1);
|
TRACE("(%p)->(ref before=%u)\n", This, refCount - 1);
|
||||||
|
|
||||||
DMUSIC_LockModule();
|
DMUSIC_LockModule();
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ static ULONG WINAPI IDirectMusicThruImpl_Release (LPDIRECTMUSICTHRU iface) {
|
||||||
IDirectMusicThruImpl *This = (IDirectMusicThruImpl *)iface;
|
IDirectMusicThruImpl *This = (IDirectMusicThruImpl *)iface;
|
||||||
ULONG refCount = InterlockedDecrement(&This->ref);
|
ULONG refCount = InterlockedDecrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p)->(ref before=%lu)\n", This, refCount + 1);
|
TRACE("(%p)->(ref before=%u)\n", This, refCount + 1);
|
||||||
|
|
||||||
if (!refCount) {
|
if (!refCount) {
|
||||||
HeapFree(GetProcessHeap(), 0, This);
|
HeapFree(GetProcessHeap(), 0, This);
|
||||||
|
@ -65,7 +65,7 @@ static ULONG WINAPI IDirectMusicThruImpl_Release (LPDIRECTMUSICTHRU iface) {
|
||||||
/* IDirectMusicThru Interface follow: */
|
/* IDirectMusicThru Interface follow: */
|
||||||
static HRESULT WINAPI IDirectMusicThruImpl_ThruChannel (LPDIRECTMUSICTHRU iface, DWORD dwSourceChannelGroup, DWORD dwSourceChannel, DWORD dwDestinationChannelGroup, DWORD dwDestinationChannel, LPDIRECTMUSICPORT pDestinationPort) {
|
static HRESULT WINAPI IDirectMusicThruImpl_ThruChannel (LPDIRECTMUSICTHRU iface, DWORD dwSourceChannelGroup, DWORD dwSourceChannel, DWORD dwDestinationChannelGroup, DWORD dwDestinationChannel, LPDIRECTMUSICPORT pDestinationPort) {
|
||||||
IDirectMusicThruImpl *This = (IDirectMusicThruImpl *)iface;
|
IDirectMusicThruImpl *This = (IDirectMusicThruImpl *)iface;
|
||||||
FIXME("(%p, %ld, %ld, %ld, %ld, %p): stub\n", This, dwSourceChannelGroup, dwSourceChannel, dwDestinationChannelGroup, dwDestinationChannel, pDestinationPort);
|
FIXME("(%p, %d, %d, %d, %d, %p): stub\n", This, dwSourceChannelGroup, dwSourceChannel, dwDestinationChannelGroup, dwDestinationChannel, pDestinationPort);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue