comparison src/cdrom/os2/SDL_syscdrom.c @ 1442:e3242177fe4a

Updated OS/2 build, yay!
author Sam Lantinga <slouken@libsdl.org>
date Sun, 26 Feb 2006 19:30:21 +0000
parents d910939febfa
children 92947e3a18db
comparison
equal deleted inserted replaced
1441:b9f034536fa0 1442:e3242177fe4a
291 if (LOUSHORT(mciSendCommand(cdrom->id,MCI_STATUS,MCI_WAIT | MCI_STATUS_ITEM,&msp, 0)) == MCIERR_SUCCESS) 291 if (LOUSHORT(mciSendCommand(cdrom->id,MCI_STATUS,MCI_WAIT | MCI_STATUS_ITEM,&msp, 0)) == MCIERR_SUCCESS)
292 { 292 {
293 if (msp.ulReturn == MCI_MODE_PAUSE) 293 if (msp.ulReturn == MCI_MODE_PAUSE)
294 { 294 {
295 mgp.hwndCallback = (HWND)NULL; // None 295 mgp.hwndCallback = (HWND)NULL; // None
296 mciSendCommand(cdrom->id,MCI_RESUME,NULL,&mgp, 0); 296 mciSendCommand(cdrom->id,MCI_RESUME,0,&mgp, 0);
297 } 297 }
298 } 298 }
299 /* Now play it. */ 299 /* Now play it. */
300 mpp.hwndCallback = (HWND)NULL; // We do not want the info. temp 300 mpp.hwndCallback = (HWND)NULL; // We do not want the info. temp
301 if (LOUSHORT(mciSendCommand(cdrom->id,MCI_PLAY,MCI_FROM | MCI_TO,&mpp, 0)) == MCIERR_SUCCESS) return 0; 301 if (LOUSHORT(mciSendCommand(cdrom->id,MCI_PLAY,MCI_FROM | MCI_TO,&mpp, 0)) == MCIERR_SUCCESS) return 0;
336 if (LOUSHORT(mciSendCommand(cdrom->id,MCI_STATUS,MCI_WAIT | MCI_STATUS_ITEM,&msp, 0)) == MCIERR_SUCCESS) 336 if (LOUSHORT(mciSendCommand(cdrom->id,MCI_STATUS,MCI_WAIT | MCI_STATUS_ITEM,&msp, 0)) == MCIERR_SUCCESS)
337 { 337 {
338 if (msp.ulReturn == MCI_MODE_PAUSE) 338 if (msp.ulReturn == MCI_MODE_PAUSE)
339 { 339 {
340 mgp.hwndCallback = (HWND)NULL; // None 340 mgp.hwndCallback = (HWND)NULL; // None
341 mciSendCommand(cdrom->id,MCI_RESUME,NULL,&mgp, 0); 341 mciSendCommand(cdrom->id,MCI_RESUME,0,&mgp, 0);
342 } 342 }
343 } 343 }
344 /* Now stops the media */ 344 /* Now stops the media */
345 mgp.hwndCallback = (HWND)NULL; // None 345 mgp.hwndCallback = (HWND)NULL; // None
346 if (LOUSHORT(mciSendCommand(cdrom->id,MCI_STOP,MCI_WAIT,&mgp, 0)) == MCIERR_SUCCESS) return 0; 346 if (LOUSHORT(mciSendCommand(cdrom->id,MCI_STOP,MCI_WAIT,&mgp, 0)) == MCIERR_SUCCESS) return 0;