Ignore:
Timestamp:
Aug 24, 1999, 11:21:11 PM (26 years ago)
Author:
phaller
Message:

Fix: added SetWin32TIB wrappers to callback functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/winmm/dwaveout.cpp

    r588 r668  
    1 /* $Id: dwaveout.cpp,v 1.5 1999-08-19 18:46:04 phaller Exp $ */
     1/* $Id: dwaveout.cpp,v 1.6 1999-08-24 21:21:11 phaller Exp $ */
    22
    33/*
     
    1616 ****************************************************************************/
    1717
     18
     19
    1820#define  INCL_BASE
    1921#define  INCL_OS2MM
     
    2224#include <stdlib.h>
    2325#include <string.h>
    24 
    2526#define  OS2_ONLY
    2627#include "win32type.h"
     28#include <wprocess.h>
    2729
    2830#include "misc.h"
     
    4850   Init(pwfx);
    4951
    50    callback         = (LPDRVCALLBACK)nCallback;
     52   mthdCallback         = (LPDRVCALLBACK)nCallback;
    5153   this->dwInstance = dwInstance;
    5254
     
    6264
    6365   WinPostMsg(hwndCallback, WOM_OPEN, 0, 0);
     66}
     67/******************************************************************************/
     68/******************************************************************************/
     69void DartWaveOut::callback(HDRVR h, UINT uMessage, DWORD dwUser, DWORD dw1, DWORD dw2)
     70{
     71  USHORT selTIB = SetWin32TIB();
     72  mthdCallback(h,uMessage,dwUser,dw1,dw2);
     73  SetFS(selTIB);
    6474}
    6575/******************************************************************************/
     
    7787   wavehdr       = NULL;
    7888   curhdr        = NULL;
    79    callback      = NULL;
     89   mthdCallback  = NULL;
    8090   hwndCallback  = 0;
    8191   dwInstance    = 0;
Note: See TracChangeset for help on using the changeset viewer.