include: Fix a number of mmsystem.h structure for Win64.
This commit is contained in:
parent
10b089abc8
commit
ec1b28edb0
|
@ -545,7 +545,7 @@ static DWORD MCICDA_Status(UINT wDevID, DWORD dwFlags, LPMCI_STATUS_PARMS lpParm
|
||||||
return MCICDA_GetError(wmcda);
|
return MCICDA_GetError(wmcda);
|
||||||
}
|
}
|
||||||
lpParms->dwReturn = data.CurrentPosition.TrackNumber;
|
lpParms->dwReturn = data.CurrentPosition.TrackNumber;
|
||||||
TRACE("CURRENT_TRACK=%u!\n", lpParms->dwReturn);
|
TRACE("CURRENT_TRACK=%lu\n", lpParms->dwReturn);
|
||||||
break;
|
break;
|
||||||
case MCI_STATUS_LENGTH:
|
case MCI_STATUS_LENGTH:
|
||||||
if (!DeviceIoControl(wmcda->handle, IOCTL_CDROM_READ_TOC, NULL, 0,
|
if (!DeviceIoControl(wmcda->handle, IOCTL_CDROM_READ_TOC, NULL, 0,
|
||||||
|
@ -575,11 +575,11 @@ static DWORD MCICDA_Status(UINT wDevID, DWORD dwFlags, LPMCI_STATUS_PARMS lpParm
|
||||||
? MCI_FORMAT_MSF : wmcda->dwTimeFormat,
|
? MCI_FORMAT_MSF : wmcda->dwTimeFormat,
|
||||||
lpParms->dwReturn,
|
lpParms->dwReturn,
|
||||||
&ret);
|
&ret);
|
||||||
TRACE("LENGTH=%u !\n", lpParms->dwReturn);
|
TRACE("LENGTH=%lu\n", lpParms->dwReturn);
|
||||||
break;
|
break;
|
||||||
case MCI_STATUS_MODE:
|
case MCI_STATUS_MODE:
|
||||||
lpParms->dwReturn = MCICDA_GetStatus(wmcda);
|
lpParms->dwReturn = MCICDA_GetStatus(wmcda);
|
||||||
TRACE("MCI_STATUS_MODE=%08X !\n", lpParms->dwReturn);
|
TRACE("MCI_STATUS_MODE=%08lX\n", lpParms->dwReturn);
|
||||||
lpParms->dwReturn = MAKEMCIRESOURCE(lpParms->dwReturn, lpParms->dwReturn);
|
lpParms->dwReturn = MAKEMCIRESOURCE(lpParms->dwReturn, lpParms->dwReturn);
|
||||||
ret = MCI_RESOURCE_RETURNED;
|
ret = MCI_RESOURCE_RETURNED;
|
||||||
break;
|
break;
|
||||||
|
@ -596,7 +596,7 @@ static DWORD MCICDA_Status(UINT wDevID, DWORD dwFlags, LPMCI_STATUS_PARMS lpParm
|
||||||
return MCICDA_GetError(wmcda);
|
return MCICDA_GetError(wmcda);
|
||||||
}
|
}
|
||||||
lpParms->dwReturn = toc.LastTrack - toc.FirstTrack + 1;
|
lpParms->dwReturn = toc.LastTrack - toc.FirstTrack + 1;
|
||||||
TRACE("MCI_STATUS_NUMBER_OF_TRACKS = %u !\n", lpParms->dwReturn);
|
TRACE("MCI_STATUS_NUMBER_OF_TRACKS = %lu\n", lpParms->dwReturn);
|
||||||
if (lpParms->dwReturn == (WORD)-1)
|
if (lpParms->dwReturn == (WORD)-1)
|
||||||
return MCICDA_GetError(wmcda);
|
return MCICDA_GetError(wmcda);
|
||||||
break;
|
break;
|
||||||
|
@ -628,7 +628,7 @@ static DWORD MCICDA_Status(UINT wDevID, DWORD dwFlags, LPMCI_STATUS_PARMS lpParm
|
||||||
lpParms->dwReturn = FRAME_OF_ADDR(data.CurrentPosition.AbsoluteAddress);
|
lpParms->dwReturn = FRAME_OF_ADDR(data.CurrentPosition.AbsoluteAddress);
|
||||||
}
|
}
|
||||||
lpParms->dwReturn = MCICDA_CalcTime(wmcda, wmcda->dwTimeFormat, lpParms->dwReturn, &ret);
|
lpParms->dwReturn = MCICDA_CalcTime(wmcda, wmcda->dwTimeFormat, lpParms->dwReturn, &ret);
|
||||||
TRACE("MCI_STATUS_POSITION=%08X !\n", lpParms->dwReturn);
|
TRACE("MCI_STATUS_POSITION=%08lX\n", lpParms->dwReturn);
|
||||||
break;
|
break;
|
||||||
case MCI_STATUS_READY:
|
case MCI_STATUS_READY:
|
||||||
TRACE("MCI_STATUS_READY !\n");
|
TRACE("MCI_STATUS_READY !\n");
|
||||||
|
@ -666,7 +666,7 @@ static DWORD MCICDA_Status(UINT wDevID, DWORD dwFlags, LPMCI_STATUS_PARMS lpParm
|
||||||
lpParms->dwReturn = (toc.TrackData[lpParms->dwTrack - toc.FirstTrack].Control & 0x04) ?
|
lpParms->dwReturn = (toc.TrackData[lpParms->dwTrack - toc.FirstTrack].Control & 0x04) ?
|
||||||
MCI_CDA_TRACK_OTHER : MCI_CDA_TRACK_AUDIO;
|
MCI_CDA_TRACK_OTHER : MCI_CDA_TRACK_AUDIO;
|
||||||
}
|
}
|
||||||
TRACE("MCI_CDA_STATUS_TYPE_TRACK[%d]=%d\n", lpParms->dwTrack, lpParms->dwReturn);
|
TRACE("MCI_CDA_STATUS_TYPE_TRACK[%d]=%ld\n", lpParms->dwTrack, lpParms->dwReturn);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
FIXME("unknown command %08X !\n", lpParms->dwItem);
|
FIXME("unknown command %08X !\n", lpParms->dwItem);
|
||||||
|
|
|
@ -1387,7 +1387,7 @@ static DWORD MIDI_mciStatus(UINT wDevID, DWORD dwFlags, LPMCI_STATUS_PARMS lpPar
|
||||||
case MCI_STATUS_CURRENT_TRACK:
|
case MCI_STATUS_CURRENT_TRACK:
|
||||||
/* FIXME in Format 2 */
|
/* FIXME in Format 2 */
|
||||||
lpParms->dwReturn = 1;
|
lpParms->dwReturn = 1;
|
||||||
TRACE("MCI_STATUS_CURRENT_TRACK => %u\n", lpParms->dwReturn);
|
TRACE("MCI_STATUS_CURRENT_TRACK => %lu\n", lpParms->dwReturn);
|
||||||
break;
|
break;
|
||||||
case MCI_STATUS_LENGTH:
|
case MCI_STATUS_LENGTH:
|
||||||
if ((dwFlags & MCI_TRACK) && wmm->wFormat == 2) {
|
if ((dwFlags & MCI_TRACK) && wmm->wFormat == 2) {
|
||||||
|
@ -1399,7 +1399,7 @@ static DWORD MIDI_mciStatus(UINT wDevID, DWORD dwFlags, LPMCI_STATUS_PARMS lpPar
|
||||||
lpParms->dwReturn = MIDI_GetMThdLengthMS(wmm);
|
lpParms->dwReturn = MIDI_GetMThdLengthMS(wmm);
|
||||||
}
|
}
|
||||||
lpParms->dwReturn = MIDI_ConvertMSToTimeFormat(wmm, lpParms->dwReturn);
|
lpParms->dwReturn = MIDI_ConvertMSToTimeFormat(wmm, lpParms->dwReturn);
|
||||||
TRACE("MCI_STATUS_LENGTH => %u\n", lpParms->dwReturn);
|
TRACE("MCI_STATUS_LENGTH => %lu\n", lpParms->dwReturn);
|
||||||
break;
|
break;
|
||||||
case MCI_STATUS_MODE:
|
case MCI_STATUS_MODE:
|
||||||
TRACE("MCI_STATUS_MODE => %u\n", wmm->dwStatus);
|
TRACE("MCI_STATUS_MODE => %u\n", wmm->dwStatus);
|
||||||
|
@ -1413,13 +1413,13 @@ static DWORD MIDI_mciStatus(UINT wDevID, DWORD dwFlags, LPMCI_STATUS_PARMS lpPar
|
||||||
break;
|
break;
|
||||||
case MCI_STATUS_NUMBER_OF_TRACKS:
|
case MCI_STATUS_NUMBER_OF_TRACKS:
|
||||||
lpParms->dwReturn = (wmm->wFormat == 2) ? wmm->nTracks : 1;
|
lpParms->dwReturn = (wmm->wFormat == 2) ? wmm->nTracks : 1;
|
||||||
TRACE("MCI_STATUS_NUMBER_OF_TRACKS => %u\n", lpParms->dwReturn);
|
TRACE("MCI_STATUS_NUMBER_OF_TRACKS => %lu\n", lpParms->dwReturn);
|
||||||
break;
|
break;
|
||||||
case MCI_STATUS_POSITION:
|
case MCI_STATUS_POSITION:
|
||||||
/* FIXME: do I need to use MCI_TRACK ? */
|
/* FIXME: do I need to use MCI_TRACK ? */
|
||||||
lpParms->dwReturn = MIDI_ConvertMSToTimeFormat(wmm,
|
lpParms->dwReturn = MIDI_ConvertMSToTimeFormat(wmm,
|
||||||
(dwFlags & MCI_STATUS_START) ? 0 : wmm->dwPositionMS);
|
(dwFlags & MCI_STATUS_START) ? 0 : wmm->dwPositionMS);
|
||||||
TRACE("MCI_STATUS_POSITION %s => %u\n",
|
TRACE("MCI_STATUS_POSITION %s => %lu\n",
|
||||||
(dwFlags & MCI_STATUS_START) ? "start" : "current", lpParms->dwReturn);
|
(dwFlags & MCI_STATUS_START) ? "start" : "current", lpParms->dwReturn);
|
||||||
break;
|
break;
|
||||||
case MCI_STATUS_READY:
|
case MCI_STATUS_READY:
|
||||||
|
|
|
@ -1351,7 +1351,7 @@ static DWORD WAVE_mciStatus(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_STATUS_PARM
|
||||||
switch (lpParms->dwItem) {
|
switch (lpParms->dwItem) {
|
||||||
case MCI_STATUS_CURRENT_TRACK:
|
case MCI_STATUS_CURRENT_TRACK:
|
||||||
lpParms->dwReturn = 1;
|
lpParms->dwReturn = 1;
|
||||||
TRACE("MCI_STATUS_CURRENT_TRACK => %u\n", lpParms->dwReturn);
|
TRACE("MCI_STATUS_CURRENT_TRACK => %lu\n", lpParms->dwReturn);
|
||||||
break;
|
break;
|
||||||
case MCI_STATUS_LENGTH:
|
case MCI_STATUS_LENGTH:
|
||||||
if (!wmw->hFile) {
|
if (!wmw->hFile) {
|
||||||
|
@ -1360,7 +1360,7 @@ static DWORD WAVE_mciStatus(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_STATUS_PARM
|
||||||
}
|
}
|
||||||
/* only one track in file is currently handled, so don't take care of MCI_TRACK flag */
|
/* only one track in file is currently handled, so don't take care of MCI_TRACK flag */
|
||||||
lpParms->dwReturn = WAVE_ConvertByteToTimeFormat(wmw, wmw->ckWaveData.cksize, &ret);
|
lpParms->dwReturn = WAVE_ConvertByteToTimeFormat(wmw, wmw->ckWaveData.cksize, &ret);
|
||||||
TRACE("MCI_STATUS_LENGTH => %u\n", lpParms->dwReturn);
|
TRACE("MCI_STATUS_LENGTH => %lu\n", lpParms->dwReturn);
|
||||||
break;
|
break;
|
||||||
case MCI_STATUS_MODE:
|
case MCI_STATUS_MODE:
|
||||||
TRACE("MCI_STATUS_MODE => %u\n", wmw->dwStatus);
|
TRACE("MCI_STATUS_MODE => %u\n", wmw->dwStatus);
|
||||||
|
@ -1375,7 +1375,7 @@ static DWORD WAVE_mciStatus(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_STATUS_PARM
|
||||||
case MCI_STATUS_NUMBER_OF_TRACKS:
|
case MCI_STATUS_NUMBER_OF_TRACKS:
|
||||||
/* only one track in file is currently handled, so don't take care of MCI_TRACK flag */
|
/* only one track in file is currently handled, so don't take care of MCI_TRACK flag */
|
||||||
lpParms->dwReturn = 1;
|
lpParms->dwReturn = 1;
|
||||||
TRACE("MCI_STATUS_NUMBER_OF_TRACKS => %u!\n", lpParms->dwReturn);
|
TRACE("MCI_STATUS_NUMBER_OF_TRACKS => %lu\n", lpParms->dwReturn);
|
||||||
break;
|
break;
|
||||||
case MCI_STATUS_POSITION:
|
case MCI_STATUS_POSITION:
|
||||||
if (!wmw->hFile) {
|
if (!wmw->hFile) {
|
||||||
|
@ -1386,7 +1386,7 @@ static DWORD WAVE_mciStatus(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_STATUS_PARM
|
||||||
lpParms->dwReturn = WAVE_ConvertByteToTimeFormat(wmw,
|
lpParms->dwReturn = WAVE_ConvertByteToTimeFormat(wmw,
|
||||||
(dwFlags & MCI_STATUS_START) ? 0 : wmw->dwPosition,
|
(dwFlags & MCI_STATUS_START) ? 0 : wmw->dwPosition,
|
||||||
&ret);
|
&ret);
|
||||||
TRACE("MCI_STATUS_POSITION %s => %u\n",
|
TRACE("MCI_STATUS_POSITION %s => %lu\n",
|
||||||
(dwFlags & MCI_STATUS_START) ? "start" : "current", lpParms->dwReturn);
|
(dwFlags & MCI_STATUS_START) ? "start" : "current", lpParms->dwReturn);
|
||||||
break;
|
break;
|
||||||
case MCI_STATUS_READY:
|
case MCI_STATUS_READY:
|
||||||
|
@ -1397,7 +1397,7 @@ static DWORD WAVE_mciStatus(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_STATUS_PARM
|
||||||
break;
|
break;
|
||||||
case MCI_STATUS_TIME_FORMAT:
|
case MCI_STATUS_TIME_FORMAT:
|
||||||
lpParms->dwReturn = MAKEMCIRESOURCE(wmw->dwMciTimeFormat, MCI_FORMAT_RETURN_BASE + wmw->dwMciTimeFormat);
|
lpParms->dwReturn = MAKEMCIRESOURCE(wmw->dwMciTimeFormat, MCI_FORMAT_RETURN_BASE + wmw->dwMciTimeFormat);
|
||||||
TRACE("MCI_STATUS_TIME_FORMAT => %u\n", lpParms->dwReturn);
|
TRACE("MCI_STATUS_TIME_FORMAT => %lu\n", lpParms->dwReturn);
|
||||||
ret = MCI_RESOURCE_RETURNED;
|
ret = MCI_RESOURCE_RETURNED;
|
||||||
break;
|
break;
|
||||||
case MCI_WAVE_INPUT:
|
case MCI_WAVE_INPUT:
|
||||||
|
@ -1423,7 +1423,7 @@ static DWORD WAVE_mciStatus(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_STATUS_PARM
|
||||||
return MCIERR_UNSUPPORTED_FUNCTION;
|
return MCIERR_UNSUPPORTED_FUNCTION;
|
||||||
}
|
}
|
||||||
lpParms->dwReturn = wmw->lpWaveFormat->nAvgBytesPerSec;
|
lpParms->dwReturn = wmw->lpWaveFormat->nAvgBytesPerSec;
|
||||||
TRACE("MCI_WAVE_STATUS_AVGBYTESPERSEC => %u!\n", lpParms->dwReturn);
|
TRACE("MCI_WAVE_STATUS_AVGBYTESPERSEC => %lu\n", lpParms->dwReturn);
|
||||||
break;
|
break;
|
||||||
case MCI_WAVE_STATUS_BITSPERSAMPLE:
|
case MCI_WAVE_STATUS_BITSPERSAMPLE:
|
||||||
if (!wmw->hFile) {
|
if (!wmw->hFile) {
|
||||||
|
@ -1431,7 +1431,7 @@ static DWORD WAVE_mciStatus(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_STATUS_PARM
|
||||||
return MCIERR_UNSUPPORTED_FUNCTION;
|
return MCIERR_UNSUPPORTED_FUNCTION;
|
||||||
}
|
}
|
||||||
lpParms->dwReturn = wmw->lpWaveFormat->wBitsPerSample;
|
lpParms->dwReturn = wmw->lpWaveFormat->wBitsPerSample;
|
||||||
TRACE("MCI_WAVE_STATUS_BITSPERSAMPLE => %u!\n", lpParms->dwReturn);
|
TRACE("MCI_WAVE_STATUS_BITSPERSAMPLE => %lu\n", lpParms->dwReturn);
|
||||||
break;
|
break;
|
||||||
case MCI_WAVE_STATUS_BLOCKALIGN:
|
case MCI_WAVE_STATUS_BLOCKALIGN:
|
||||||
if (!wmw->hFile) {
|
if (!wmw->hFile) {
|
||||||
|
@ -1439,7 +1439,7 @@ static DWORD WAVE_mciStatus(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_STATUS_PARM
|
||||||
return MCIERR_UNSUPPORTED_FUNCTION;
|
return MCIERR_UNSUPPORTED_FUNCTION;
|
||||||
}
|
}
|
||||||
lpParms->dwReturn = wmw->lpWaveFormat->nBlockAlign;
|
lpParms->dwReturn = wmw->lpWaveFormat->nBlockAlign;
|
||||||
TRACE("MCI_WAVE_STATUS_BLOCKALIGN => %u!\n", lpParms->dwReturn);
|
TRACE("MCI_WAVE_STATUS_BLOCKALIGN => %lu\n", lpParms->dwReturn);
|
||||||
break;
|
break;
|
||||||
case MCI_WAVE_STATUS_CHANNELS:
|
case MCI_WAVE_STATUS_CHANNELS:
|
||||||
if (!wmw->hFile) {
|
if (!wmw->hFile) {
|
||||||
|
@ -1447,7 +1447,7 @@ static DWORD WAVE_mciStatus(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_STATUS_PARM
|
||||||
return MCIERR_UNSUPPORTED_FUNCTION;
|
return MCIERR_UNSUPPORTED_FUNCTION;
|
||||||
}
|
}
|
||||||
lpParms->dwReturn = wmw->lpWaveFormat->nChannels;
|
lpParms->dwReturn = wmw->lpWaveFormat->nChannels;
|
||||||
TRACE("MCI_WAVE_STATUS_CHANNELS => %u!\n", lpParms->dwReturn);
|
TRACE("MCI_WAVE_STATUS_CHANNELS => %lu\n", lpParms->dwReturn);
|
||||||
break;
|
break;
|
||||||
case MCI_WAVE_STATUS_FORMATTAG:
|
case MCI_WAVE_STATUS_FORMATTAG:
|
||||||
if (!wmw->hFile) {
|
if (!wmw->hFile) {
|
||||||
|
@ -1455,7 +1455,7 @@ static DWORD WAVE_mciStatus(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_STATUS_PARM
|
||||||
return MCIERR_UNSUPPORTED_FUNCTION;
|
return MCIERR_UNSUPPORTED_FUNCTION;
|
||||||
}
|
}
|
||||||
lpParms->dwReturn = wmw->lpWaveFormat->wFormatTag;
|
lpParms->dwReturn = wmw->lpWaveFormat->wFormatTag;
|
||||||
TRACE("MCI_WAVE_FORMATTAG => %u!\n", lpParms->dwReturn);
|
TRACE("MCI_WAVE_FORMATTAG => %lu\n", lpParms->dwReturn);
|
||||||
break;
|
break;
|
||||||
case MCI_WAVE_STATUS_LEVEL:
|
case MCI_WAVE_STATUS_LEVEL:
|
||||||
TRACE("MCI_WAVE_STATUS_LEVEL !\n");
|
TRACE("MCI_WAVE_STATUS_LEVEL !\n");
|
||||||
|
@ -1467,7 +1467,7 @@ static DWORD WAVE_mciStatus(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_STATUS_PARM
|
||||||
return MCIERR_UNSUPPORTED_FUNCTION;
|
return MCIERR_UNSUPPORTED_FUNCTION;
|
||||||
}
|
}
|
||||||
lpParms->dwReturn = wmw->lpWaveFormat->nSamplesPerSec;
|
lpParms->dwReturn = wmw->lpWaveFormat->nSamplesPerSec;
|
||||||
TRACE("MCI_WAVE_STATUS_SAMPLESPERSEC => %u!\n", lpParms->dwReturn);
|
TRACE("MCI_WAVE_STATUS_SAMPLESPERSEC => %lu\n", lpParms->dwReturn);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
WARN("unknown command %08X !\n", lpParms->dwItem);
|
WARN("unknown command %08X !\n", lpParms->dwItem);
|
||||||
|
|
|
@ -752,7 +752,7 @@ end_of_mci_open:
|
||||||
MCIWND_notify_error(mwi);
|
MCIWND_notify_error(mwi);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
TRACE("MCIWNDM_GETLENGTH: %d\n", mci_status.dwReturn);
|
TRACE("MCIWNDM_GETLENGTH: %ld\n", mci_status.dwReturn);
|
||||||
return mci_status.dwReturn;
|
return mci_status.dwReturn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -769,7 +769,7 @@ end_of_mci_open:
|
||||||
MCIWND_notify_error(mwi);
|
MCIWND_notify_error(mwi);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
TRACE("MCIWNDM_GETSTART: %d\n", mci_status.dwReturn);
|
TRACE("MCIWNDM_GETSTART: %ld\n", mci_status.dwReturn);
|
||||||
return mci_status.dwReturn;
|
return mci_status.dwReturn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -298,7 +298,7 @@ static DWORD wodPlayer_NotifyCompletions(WINE_WAVEDEV* wwo, BOOL force)
|
||||||
|
|
||||||
if (lpWaveHdr == wwo->lpPlayPtr) {TRACE("play %p\n", lpWaveHdr); break;}
|
if (lpWaveHdr == wwo->lpPlayPtr) {TRACE("play %p\n", lpWaveHdr); break;}
|
||||||
if (lpWaveHdr == wwo->lpLoopPtr) {TRACE("loop %p\n", lpWaveHdr); break;}
|
if (lpWaveHdr == wwo->lpLoopPtr) {TRACE("loop %p\n", lpWaveHdr); break;}
|
||||||
if (lpWaveHdr->reserved > wwo->dwPlayedTotal + frames) {TRACE("still playing %p (%u/%u)\n", lpWaveHdr, lpWaveHdr->reserved, wwo->dwPlayedTotal);break;}
|
if (lpWaveHdr->reserved > wwo->dwPlayedTotal + frames) {TRACE("still playing %p (%lu/%u)\n", lpWaveHdr, lpWaveHdr->reserved, wwo->dwPlayedTotal);break;}
|
||||||
}
|
}
|
||||||
wwo->dwPlayedTotal += lpWaveHdr->reserved - wwo->dwPlayedTotal;
|
wwo->dwPlayedTotal += lpWaveHdr->reserved - wwo->dwPlayedTotal;
|
||||||
wwo->lpQueuePtr = lpWaveHdr->lpNext;
|
wwo->lpQueuePtr = lpWaveHdr->lpNext;
|
||||||
|
|
|
@ -899,7 +899,7 @@ static DWORD wodPlayer_NotifyCompletions(WINE_WAVEOUT* wwo, BOOL force)
|
||||||
LPWAVEHDR lpWaveHdr;
|
LPWAVEHDR lpWaveHdr;
|
||||||
|
|
||||||
if (wwo->lpQueuePtr) {
|
if (wwo->lpQueuePtr) {
|
||||||
TRACE("lpWaveHdr=(%p), lpPlayPtr=(%p), lpLoopPtr=(%p), reserved=(%d), dwWrittenTotal=(%d), force=(%d)\n",
|
TRACE("lpWaveHdr=(%p), lpPlayPtr=(%p), lpLoopPtr=(%p), reserved=(%ld), dwWrittenTotal=(%d), force=(%d)\n",
|
||||||
wwo->lpQueuePtr,
|
wwo->lpQueuePtr,
|
||||||
wwo->lpPlayPtr,
|
wwo->lpPlayPtr,
|
||||||
wwo->lpLoopPtr,
|
wwo->lpLoopPtr,
|
||||||
|
@ -1110,7 +1110,7 @@ static DWORD wodPlayer_FeedDSP(WINE_WAVEOUT* wwo)
|
||||||
TRACE("feeding waveheaders until we run out of space\n");
|
TRACE("feeding waveheaders until we run out of space\n");
|
||||||
/* note the value that dwPlayedTotal will return when this wave finishes playing */
|
/* note the value that dwPlayedTotal will return when this wave finishes playing */
|
||||||
wwo->lpPlayPtr->reserved = wwo->dwWrittenTotal + wwo->lpPlayPtr->dwBufferLength;
|
wwo->lpPlayPtr->reserved = wwo->dwWrittenTotal + wwo->lpPlayPtr->dwBufferLength;
|
||||||
TRACE("reserved=(%d) dwWrittenTotal=(%d) dwBufferLength=(%d)\n",
|
TRACE("reserved=(%ld) dwWrittenTotal=(%d) dwBufferLength=(%d)\n",
|
||||||
wwo->lpPlayPtr->reserved,
|
wwo->lpPlayPtr->reserved,
|
||||||
wwo->dwWrittenTotal,
|
wwo->dwWrittenTotal,
|
||||||
wwo->lpPlayPtr->dwBufferLength
|
wwo->lpPlayPtr->dwBufferLength
|
||||||
|
|
|
@ -1674,7 +1674,7 @@ static DWORD wodPlayer_NotifyCompletions(WINE_WAVEOUT* wwo, BOOL force)
|
||||||
{
|
{
|
||||||
if (lpWaveHdr == wwo->lpPlayPtr) {TRACE("play %p\n", lpWaveHdr); break;}
|
if (lpWaveHdr == wwo->lpPlayPtr) {TRACE("play %p\n", lpWaveHdr); break;}
|
||||||
if (lpWaveHdr == wwo->lpLoopPtr) {TRACE("loop %p\n", lpWaveHdr); break;}
|
if (lpWaveHdr == wwo->lpLoopPtr) {TRACE("loop %p\n", lpWaveHdr); break;}
|
||||||
if (lpWaveHdr->reserved > wwo->dwPlayedTotal) {TRACE("still playing %p (%u/%u)\n", lpWaveHdr, lpWaveHdr->reserved, wwo->dwPlayedTotal);break;}
|
if (lpWaveHdr->reserved > wwo->dwPlayedTotal) {TRACE("still playing %p (%lu/%u)\n", lpWaveHdr, lpWaveHdr->reserved, wwo->dwPlayedTotal);break;}
|
||||||
}
|
}
|
||||||
wwo->lpQueuePtr = lpWaveHdr->lpNext;
|
wwo->lpQueuePtr = lpWaveHdr->lpNext;
|
||||||
|
|
||||||
|
|
|
@ -2106,8 +2106,8 @@ LRESULT MCI_CleanUp(LRESULT dwRet, UINT wMsg, DWORD dwParam2)
|
||||||
{
|
{
|
||||||
LPMCI_STATUS_PARMS lsp;
|
LPMCI_STATUS_PARMS lsp;
|
||||||
|
|
||||||
lsp = (LPMCI_STATUS_PARMS)(void*)dwParam2;
|
lsp = (LPMCI_STATUS_PARMS)dwParam2;
|
||||||
TRACE("Changing %08x to %08x\n", lsp->dwReturn, LOWORD(lsp->dwReturn));
|
TRACE("Changing %08lx to %08x\n", lsp->dwReturn, LOWORD(lsp->dwReturn));
|
||||||
lsp->dwReturn = LOWORD(lsp->dwReturn);
|
lsp->dwReturn = LOWORD(lsp->dwReturn);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -313,11 +313,11 @@ typedef struct wavehdr_tag {
|
||||||
LPSTR lpData;
|
LPSTR lpData;
|
||||||
DWORD dwBufferLength;
|
DWORD dwBufferLength;
|
||||||
DWORD dwBytesRecorded;
|
DWORD dwBytesRecorded;
|
||||||
DWORD dwUser;
|
DWORD_PTR dwUser;
|
||||||
DWORD dwFlags;
|
DWORD dwFlags;
|
||||||
DWORD dwLoops;
|
DWORD dwLoops;
|
||||||
struct wavehdr_tag *lpNext;
|
struct wavehdr_tag *lpNext;
|
||||||
DWORD reserved;
|
DWORD_PTR reserved;
|
||||||
} WAVEHDR, *PWAVEHDR, *NPWAVEHDR, *LPWAVEHDR;
|
} WAVEHDR, *PWAVEHDR, *NPWAVEHDR, *LPWAVEHDR;
|
||||||
|
|
||||||
#define WHDR_DONE 0x00000001
|
#define WHDR_DONE 0x00000001
|
||||||
|
@ -704,7 +704,7 @@ typedef struct midihdr_tag {
|
||||||
DWORD_PTR dwUser;
|
DWORD_PTR dwUser;
|
||||||
DWORD dwFlags;
|
DWORD dwFlags;
|
||||||
struct midihdr_tag *lpNext;
|
struct midihdr_tag *lpNext;
|
||||||
DWORD reserved;
|
DWORD_PTR reserved;
|
||||||
DWORD dwOffset;
|
DWORD dwOffset;
|
||||||
DWORD_PTR dwReserved[8];
|
DWORD_PTR dwReserved[8];
|
||||||
} MIDIHDR, *LPMIDIHDR;
|
} MIDIHDR, *LPMIDIHDR;
|
||||||
|
@ -1225,7 +1225,7 @@ typedef struct tagMIXERLINEA {
|
||||||
DWORD dwSource;
|
DWORD dwSource;
|
||||||
DWORD dwLineID;
|
DWORD dwLineID;
|
||||||
DWORD fdwLine;
|
DWORD fdwLine;
|
||||||
DWORD dwUser;
|
DWORD_PTR dwUser;
|
||||||
DWORD dwComponentType;
|
DWORD dwComponentType;
|
||||||
DWORD cChannels;
|
DWORD cChannels;
|
||||||
DWORD cConnections;
|
DWORD cConnections;
|
||||||
|
@ -1248,7 +1248,7 @@ typedef struct tagMIXERLINEW {
|
||||||
DWORD dwSource;
|
DWORD dwSource;
|
||||||
DWORD dwLineID;
|
DWORD dwLineID;
|
||||||
DWORD fdwLine;
|
DWORD fdwLine;
|
||||||
DWORD dwUser;
|
DWORD_PTR dwUser;
|
||||||
DWORD dwComponentType;
|
DWORD dwComponentType;
|
||||||
DWORD cChannels;
|
DWORD cChannels;
|
||||||
DWORD cConnections;
|
DWORD cConnections;
|
||||||
|
@ -1977,7 +1977,7 @@ typedef struct tagMCI_SEEK_PARMS {
|
||||||
|
|
||||||
typedef struct tagMCI_STATUS_PARMS {
|
typedef struct tagMCI_STATUS_PARMS {
|
||||||
DWORD_PTR dwCallback;
|
DWORD_PTR dwCallback;
|
||||||
DWORD dwReturn;
|
DWORD_PTR dwReturn;
|
||||||
DWORD dwItem;
|
DWORD dwItem;
|
||||||
DWORD dwTrack;
|
DWORD dwTrack;
|
||||||
} MCI_STATUS_PARMS, *LPMCI_STATUS_PARMS;
|
} MCI_STATUS_PARMS, *LPMCI_STATUS_PARMS;
|
||||||
|
|
Loading…
Reference in New Issue