/* DP2ADD is defined as: (src0.r * src1.r) + (src0.g * src1.g) + src2.
* One D3D restriction of all shader instructions except SINCOS is that no more than 2
- * source tokens can be constants. So, for this excercise, we move contents of c0 to
+ * source tokens can be constants. So, for this exercise, we move contents of c0 to
* r0 first.
- * The result here for the r,g,b components should be rougly 0.5:
+ * The result here for the r,g,b components should be roughly 0.5:
* (0.5 * 0.5) + (0.5 * 0.5) + 0.0 = 0.5 */
static const DWORD shader_code_dp2add[] = {
0xffff0200, /* ps_2_0 */
return E_POINTER;
}
}
- /* check if we wszAlias is big enough */
+ /* check if wszAlias is big enough */
if (pwszAlias && IsBadWritePtr (pwszAlias, DMUS_MAX_FILENAME_SIZE)) {
ERR(": wszAlias bad write pointer\n");
return E_POINTER;
ICOM_THIS_MULTI(IDirectMusicContainerImpl, ObjectVtbl, iface);
TRACE("(%p, %p):\n", This, pDesc);
- /* check if whe can write to whole pDesc */
+ /* check if we can write to whole pDesc */
if (IsBadReadPtr (pDesc, sizeof(DWORD))) {
ERR(": pDesc->dwSize bad read pointer\n");
return E_POINTER;
ICOM_THIS_MULTI(IDirectMusicContainerImpl, ObjectVtbl, iface);
TRACE("(%p, %p):\n", This, pDesc);
- /* check if whe can read whole pDesc */
+ /* check if we can read whole pDesc */
if (IsBadReadPtr (pDesc, sizeof(DWORD))) {
ERR(": pDesc->dwSize bad read pointer\n");
return E_POINTER;
ERR(": pStm bad read pointer\n");
return E_POINTER;
}
- /* if stream is already set, this means we're loaded already */
+ /* if stream is already set, this means the container is already loaded */
if (This->pStream) {
TRACE(": stream is already set, which means container is already loaded\n");
return DMUS_E_ALREADY_LOADED;
LIST_FOR_EACH (pEntry, This->pContainedObjects) {
pContainedObject = LIST_ENTRY (pEntry, WINE_CONTAINER_ENTRY, entry);
/* my tests indicate that container releases objects *only*
- if they were loaded at it's load-time (makes sense, it doesn't
+ if they were loaded at its load-time (makes sense, it doesn't
have pointers to objects otherwise); BTW: native container seems
- ti ignore the flags (I won't) */
+ to ignore the flags (I won't) */
if (pContainedObject->pObject && !(pContainedObject->dwFlags & DMUS_CONTAINED_OBJF_KEEP)) {
/* flags say it shouldn't be kept in loader's cache */
IDirectMusicLoader_ReleaseObject (pLoader, pContainedObject->pObject);
IStream_Read (pStm, &pNewMotif->pattern, Chunk.dwSize, NULL);
/** TODO trace pattern */
- /** reset all datas, as a new pattern begin */
+ /** reset all data, as a new pattern begin */
DM_STRUCT_INIT(&pNewMotif->desc);
list_init (&pNewMotif->Items);
break;
}
case FOURCC_RIFF: {
/**
- * sould be embededs Bands into pattern
+ * should be embedded Bands into pattern
*/
IStream_Read (pStm, &Chunk.fccID, sizeof(FOURCC), NULL);
TRACE_(dmfile)(": RIFF chunk of type %s", debugstr_fourcc(Chunk.fccID));
pNewMotif->pBand = pBand;
IDirectMusicBand_AddRef(pBand);
- IDirectMusicTrack_Release(pBand); pBand = NULL; /* now we can release at as it inserted */
+ IDirectMusicTrack_Release(pBand); pBand = NULL; /* now we can release it as it's inserted */
/** now safe move the cursor */
liMove.QuadPart = ListSize[1];
}
case FOURCC_RIFF: {
/**
- * sould be embededs Bands into style
+ * should be embedded Bands into style
*/
IStream_Read (pStm, &Chunk.fccID, sizeof(FOURCC), NULL);
TRACE_(dmfile)(": RIFF chunk of type %s", debugstr_fourcc(Chunk.fccID));
IDirectMusicBand_AddRef(pBand);
list_add_tail (&This->Bands, &pNewBand->entry);
- IDirectMusicTrack_Release(pBand); pBand = NULL; /* now we can release at as it inserted */
+ IDirectMusicTrack_Release(pBand); pBand = NULL; /* now we can release it as it's inserted */
- /** now safe move the cursor */
+ /** now safely move the cursor */
liMove.QuadPart = ListSize[0];
IStream_Seek (pStm, liMove, STREAM_SEEK_CUR, NULL);
case FOURCC_INS: {
LPDMUS_PRIVATE_INSTRUMENTENTRY pNewInstrument = HeapAlloc (GetProcessHeap (), HEAP_ZERO_MEMORY, sizeof(DMUS_PRIVATE_INSTRUMENTENTRY));
TRACE_(dmfile)(": instrument list\n");
- DMUSIC_CreateDirectMusicInstrumentImpl (&IID_IDirectMusicInstrument, (LPVOID*)&pNewInstrument->pInstrument, NULL); /* only way to create this one... even M$ does it discretly */
+ DMUSIC_CreateDirectMusicInstrumentImpl (&IID_IDirectMusicInstrument, (LPVOID*)&pNewInstrument->pInstrument, NULL); /* only way to create this one... even M$ does it discretely */
{
ICOM_NAME_MULTI (IDirectMusicInstrumentImpl, InstrumentVtbl, pNewInstrument->pInstrument, pInstrument);
liMove.QuadPart = 0;
/*
* special(ch)
* Thinking in noninternationalized USASCII (per the DNS spec),
- * is this characted special ("in need of quoting") ?
+ * is this character special ("in need of quoting") ?
* return:
* boolean.
*/
for( ;; )
{
/* We do not enum the name server or app server as they are of no
- * concequence to the end user.
+ * consequence to the end user.
*/
if( ( lpPList->lpPData->dpid != DPID_NAME_SERVER ) &&
( lpPList->lpPData->dpid != DPID_SERVERPLAYER )
return dwSize;
}
-/* Assumes that contugous buffers are already allocated. */
+/* Assumes that contiguous buffers are already allocated. */
static void DP_CopySessionDesc( LPDPSESSIONDESC2 lpSessionDest,
LPCDPSESSIONDESC2 lpSessionSrc, BOOL bAnsi )
{
*
* NOTES:
* o Implementation of all things which are associated with dplay on
- * the computer - ie shared resources and such. Methods in this
- * compilation unit should not call anything out side this unit
- * excepting base windows services and an interface to start the
+ * the computer - i.e. shared resources and such. Methods in this
+ * compilation unit should not call anything outside of this unit
+ * except base windows services and an interface to start the
* messaging thread.
* o Methods that begin with DPLAYX_ are used for dealing with
* dplayx.dll data which is accessible from all processes.
sessionData[i].dwSize = 0;
}
- /* Zero out the dynmaic area */
+ /* Zero out the dynamic area */
ZeroMemory( lpMemArea, dwDynamicSharedSize );
/* Just for fun sync the whole data area */
return FALSE;
}
-/* Reserve a spot for the new appliction. TRUE means success and FALSE failure. */
+/* Reserve a spot for the new application. TRUE means success and FALSE failure. */
BOOL DPLAYX_CreateLobbyApplication( DWORD dwAppID )
{
UINT i;
{
LPDPLAYX_LOBBYDATA lpLData;
- /* Need to explictly give lobby application. Can't set for yourself */
+ /* Need to explicitly give lobby application. Can't set for yourself */
if( dwAppID == 0 )
{
return FALSE;
}
-/* Store the structure into the shared data structre. Ensure that allocs for
+/* Store the structure into the shared data structure. Ensure that allocs for
* variable length strings come from the shared data structure.
- * FIXME: We need to free information as well
+ * FIXME: We need to free information as well.
*/
HRESULT DPLAYX_SetConnectionSettingsA
( DWORD dwFlags,
* o DPMSGCMD_ENUMSESSIONSREPLY & DPMSGCMD_ENUMSESSIONSREQUEST
* Have most fields understood, but not all. Everything seems to work.
* o DPMSGCMD_REQUESTNEWPLAYERID & DPMSGCMD_NEWPLAYERIDREPLY
- * Barely work. This needs to be completed for sessions to start.
+ * Barely works. This needs to be completed for sessions to start.
* o A small issue will be the fact that DirectX 6.1(ie. DirectPlay4)
* introduces a layer of functionality inside the DP objects which
* provide guaranteed protocol delivery. This is even if the native
* to leave this kind of implementation to as close to the end as
* possible. However, I will implement an abstraction layer, where
* possible, for this functionality. It will do nothing to start, but
- * will require only the implementation of the guaranteness to give
+ * will require only the implementation of the guarantee to give
* final implementation.
*
* TODO:
HRESULT hr = ( gdwDPlaySPRefCount > 0 ) ? S_FALSE : S_OK;
/* FIXME: Should I be putting a check in for class factory objects
- * as well
+ * as well?
*/
TRACE( ": returning 0x%08x\n", hr );
hr = DPLAYX_SetConnectionSettingsW( dwFlags, dwAppID, lpConn );
- /* FIXME: Don't think that this is supposed to fail, but the docuementation
+ /* FIXME: Don't think that this is supposed to fail, but the documentation
is somewhat sketchy. I'll try creating a lobby application
for this... */
if( hr == DPERR_NOTLOBBIED )
hr = DPLAYX_SetConnectionSettingsA( dwFlags, dwAppID, lpConn );
- /* FIXME: Don't think that this is supposed to fail, but the docuementation
+ /* FIXME: Don't think that this is supposed to fail, but the documentation
is somewhat sketchy. I'll try creating a lobby application
for this... */
if( hr == DPERR_NOTLOBBIED )
if(IsEqualGUID(lpguidSP,&DPSPGUID_TCPIP))
{
- /*I'm forcing TCP/IP Sevice provider*/
+ /*I'm forcing the TCP/IP Service provider*/
hr = IDirectPlayX_InitializeConnection((LPDIRECTPLAY4) lpContext, lpConnection, 0);
if( SUCCEEDED( hr ))
validSP = TRUE;
return 0;
}
- /* take into acount already mixed data */
+ /* take into account already mixed data */
mixlen -= primary_done;
TRACE("primary_done=%d, mixlen (primary) = %i\n", primary_done, mixlen);
/* calculate the current wave frag position */
wave_fragpos = (device->pwplay + device->pwqueue) % device->helfrags;
- /* calculte the current wave write position */
+ /* calculate the current wave write position */
wave_writepos = wave_fragpos * device->fraglen;
TRACE("wave_fragpos = %i, wave_writepos = %i, pwqueue = %i, prebuf = %i\n",
else
device->normfunction(device->mix_buffer + DSOUND_bufpos_to_mixpos(device, writepos), device->buffer + writepos, frag);
- /* update the mix position, taking wrap-around into acount */
+ /* update the mix position, taking wrap-around into account */
device->mixpos = writepos + frag;
device->mixpos %= device->buflen;
* AddERExcludedApplicationW [FAULTREP.@]
*
* Adds an application to a list of applications for which fault reports
- * shouldn't be genereated
+ * shouldn't be generated
*
* PARAMS
* lpAppFileName [I] The filename of the application executable
* Wine doesn't use this data but stores it in the registry (in the same place
* as Windows would) in case it will be useful in a future version
*
- * According to MSDN this function should succeed even if the user have no write
+ * According to MSDN this function should succeed even if the user has no write
* access to HKLM. This probably means that there is no error checking.
*/
BOOL WINAPI AddERExcludedApplicationW(LPCWSTR lpAppFileName)