Ignore:
Timestamp:
Dec 29, 1999, 9:36:10 AM (26 years ago)
Author:
phaller
Message:

Fix: memory leak in Dart thread callback functions

File:
1 edited

Legend:

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

    r1404 r2242  
    1 /* $Id: dwaveout.h,v 1.5 1999-10-22 18:09:16 sandervl Exp $ */
     1/* $Id: dwaveout.h,v 1.6 1999-12-29 08:33:56 phaller Exp $ */
    22
    33/*
     
    3232{
    3333public:
    34               DartWaveOut(LPWAVEFORMATEX pwfx, ULONG nCallback, ULONG dwInstance);
     34              DartWaveOut(LPWAVEFORMATEX pwfx, ULONG nCallback, ULONG dwInstance, USHORT usSel);
    3535              DartWaveOut(LPWAVEFORMATEX pwfx, HWND hwndCallback);
    3636              DartWaveOut(LPWAVEFORMATEX pwfx);
     
    7272    int curFillPos, curPlayPos; //fillpos == pos in os2 mix buffer, bufpos == pos in win buffer
    7373
    74   // callback interface
    75   LPDRVCALLBACK mthdCallback;
    76   void          callback(HDRVR h, UINT uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
     74    // callback interface
     75    LPDRVCALLBACK mthdCallback; // pointer to win32 routine for the callback
     76    USHORT        selCallback;  // the win32 tib selector for the callback (saved at waveOutOpen)
     77    void          callback(HDRVR h, UINT uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
     78    HWND          hwndCallback;
     79    DWORD         dwInstance;
    7780
    78          HWND hwndCallback;
    79         DWORD dwInstance;
    80     WAVEHDR  *wavehdr, *curhdr;
     81    WAVEHDR  *wavehdr,
     82             *curhdr;
    8183
    82      BOOL fMixerSetup;
     84    BOOL fMixerSetup;
    8385
    84       VMutex *wmutex;
     86    VMutex *wmutex;
    8587                              // Linked list management
    8688              DartWaveOut*    next;                   // Next Timer
Note: See TracChangeset for help on using the changeset viewer.