Changeset 3 for trunk/classes
- Timestamp:
- Jul 13, 2017, 4:16:49 AM (8 years ago)
- Location:
- trunk/classes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/classes/REPLACE.CMD
r2 r3 1 1 /* rexx - replace DLL */ 2 2 3 3 'replace H:\cwmm\classes\cwmm.dll D:\MMOS2\MMCLASS\CWMM.DLL' 4 'replace H:\cwmm\classes\Res\dll\mmres_DE.dll d:\MMOS2\MMCLASS\bin\mmres_DE.dll' 5 'replace H:\cwmm\classes\Res\dll\mmres_EN.dll d:\MMOS2\MMCLASS\bin\mmres_EN.dll' 4 6 5 7 'replace H:\cwmm\classes\cwmm.dll J:\MMOS2\CWMM\CWMM.DLL' -
trunk/classes/c/c_audio/cwastream.c
r2 r3 129 129 OPENPARAMS * pParams; 130 130 131 pParams=PVOIDFROMMP(mp2);/* Get parameter block */ 132 if(!pParams) 133 { 134 WinPostMsg(hwnd,WM_QUIT,0,0); 135 return MRFALSE; 136 } 137 138 WinSetWindowULong(hwnd, QWL_USER, (ULONG)pParams); 139 thisPtr=pParams->wpObject; 131 /* Depending on mp1 the parameter in mp2 is either a pointer 132 to OPENPARAMS (mp1==ACKEY_START) or the object pointer (mp1==ACK_STOP) */ 133 if(ACKEY_START==LONGFROMMP(mp1)) { 134 pParams=PVOIDFROMMP(mp2);/* Get parameter block */ 135 if(!pParams) 136 { 137 WinPostMsg(hwnd,WM_QUIT,0,0); 138 return MRFALSE; 139 } 140 WinSetWindowULong(hwnd, QWL_USER, (ULONG)pParams); 141 thisPtr=pParams->wpObject; 142 } 143 else 144 thisPtr=(MMAudio*)PVOIDFROMMP(mp2); 140 145 141 146 if(somIsObj(thisPtr)) { … … 169 174 _cwmmSetRecordTitles(thisPtr, "Can't connect to server!", TRUE); 170 175 WinStartTimer(WinQueryAnchorBlock(hwnd), hwnd, 2, 4000); 171 /* WinPostMsg(hwnd,WM_QUIT,0,0);*/172 176 return MRFALSE; 173 177 } … … 202 206 203 207 WinStopTimer(WinQueryAnchorBlock(hwnd),hwnd,1 ); 204 208 205 209 sprintf(chrCommand,"stop wave%d wait", thisPtr); 206 210 mciSendString(chrCommand, retMsg, sizeof(retMsg), 0, 0); … … 276 280 } 277 281 282 278 283 MRESULT EXPENTRY streamUrlDlgProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 279 284 { … … 288 293 WinSetWindowULong(WinWindowFromID(hwnd,IDEF_URL), 289 294 QWL_USER,(ULONG)cwAudioStream);//Save object ptr. 290 295 291 296 WinSendMsg(WinWindowFromID(hwnd,IDEF_URL),EM_SETTEXTLIMIT,MPFROMSHORT((SHORT)sizeof(chrURL)),0); 292 297 -
trunk/classes/c/c_audio/cwaudio.c
r2 r3 3494 3494 BOOL bContinue=FALSE; 3495 3495 MMAudio *somSelf=(MMAudio*)mp1; 3496 WPObject *pLinkObj=NULLHANDLE; 3496 3497 MMAudioData *somThis= MMAudioGetData(somSelf); 3497 3498 ULONG ulLoop; … … 3534 3535 3535 3536 Check if parent folder is closed. If yes, don't start file scanning. 3537 3538 @@CHANGE 0.2.9 3539 3540 Check if we have a shadow in an open folder. 3541 3536 3542 */ 3543 3537 3544 wpFolder=_wpQueryFolder(somSelf); 3538 3545 if(somIsObj(wpFolder)) { 3539 if(!_wpFindViewItem(wpFolder , VIEW_ANY, NULLHANDLE)) 3540 break; 3541 } 3542 3546 if(!_wpFindViewItem(wpFolder , VIEW_ANY, NULLHANDLE)) { 3547 PUSEITEM pUseItem; 3548 BOOL fOpenView=FALSE; 3549 /* Ok, our object isn't in an open folder, but we may have a shadow somewhere in an 3550 open folder. */ 3551 for(pUseItem=_wpFindUseItem(somSelf, USAGE_LINK, NULL);pUseItem; 3552 pUseItem=_wpFindUseItem(somSelf, USAGE_LINK, pUseItem)) 3553 { 3554 PLINKITEM pLI=(PLINKITEM)++pUseItem; 3555 pLinkObj=pLI->LinkObj; /* The awake shadow */ 3556 3557 if(somIsObj(pLinkObj)) { 3558 wpFolder=_wpQueryFolder(pLinkObj); 3559 if(somIsObj(wpFolder)) { 3560 if(_wpFindViewItem(wpFolder , VIEW_ANY, NULLHANDLE)) { 3561 fOpenView=TRUE; 3562 break; 3563 } 3564 }/* somIsObj(wpFolder) */ 3565 } 3566 }/* for() */ 3567 if(!fOpenView) 3568 break; 3569 } 3570 } 3571 3543 3572 /* Get file name */ 3544 3573 ulSize=sizeof(fName); … … 3830 3859 if(ulLoop<20) 3831 3860 _wpSaveDeferred(somSelf); 3861 /* Now we have the audio info */ 3832 3862 _wpCnrRefreshDetails(somSelf); 3833 3863 /* 3864 @@CHANGE 0.2.9 3865 3866 Also refresh shadows in containers. For now we only support one shadow but that doesn't is a problem 3867 because after the first shadow the linked object has queried the audio data and every other shadow 3868 that will be awaked can use that info without ending here. Only problem may be the user opens a lot 3869 of folders with shadows and we are not fast enough but I don't care at the momen ;-). 3870 */ 3871 if(pLinkObj!=NULLHANDLE && somIsObj(pLinkObj)) /* The check on NULLHANDLE is very fast while somIsObj() needs 3872 quite some time. So we check for a valid object only if we 3873 can be quite sure we have an object (pointer!=NULLHANDLE). */ 3874 _wpCnrRefreshDetails(pLinkObj); 3834 3875 return (MRESULT) FALSE; 3835 3876 } -
trunk/classes/c/cwmm.DEF
r2 r3 25 25 26 26 LIBRARY CWMM INITGLOBAL 27 DESCRIPTION '$@#(C) C. Wohlgemuth 2005:0.2 #@##1## 21/03/05 23:20:28My ;-) ::::9::@@CWMM-classes V0.2.9'27 DESCRIPTION '$@#(C) C. Wohlgemuth 2005:0.2 #@##1## 11/05/05 17:35:09 My ;-) ::::9::@@CWMM-classes V0.2.9' 28 28 29 29 PROTMODE
Note:
See TracChangeset
for help on using the changeset viewer.