winealsa: Remove several unused members.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c6bfab8739
commit
8686fc82f0
|
@ -60,14 +60,9 @@ WINE_DEFAULT_DEBUG_CHANNEL(midi);
|
|||
|
||||
typedef struct {
|
||||
int state; /* -1 disabled, 0 is no recording started, 1 in recording, bit 2 set if in sys exclusive recording */
|
||||
DWORD bufsize;
|
||||
MIDIOPENDESC midiDesc;
|
||||
WORD wFlags;
|
||||
LPMIDIHDR lpQueueHdr;
|
||||
DWORD dwTotalPlayed;
|
||||
unsigned char incoming[3];
|
||||
unsigned char incPrev;
|
||||
char incLen;
|
||||
DWORD startTime;
|
||||
MIDIINCAPSW caps;
|
||||
snd_seq_addr_t addr;
|
||||
|
@ -75,12 +70,8 @@ typedef struct {
|
|||
|
||||
typedef struct {
|
||||
BOOL bEnabled;
|
||||
DWORD bufsize;
|
||||
MIDIOPENDESC midiDesc;
|
||||
WORD wFlags;
|
||||
LPMIDIHDR lpQueueHdr;
|
||||
DWORD dwTotalPlayed;
|
||||
void* lpExtra; /* according to port type (MIDI, FM...), extra data when needed */
|
||||
MIDIOUTCAPSW caps;
|
||||
snd_seq_addr_t addr;
|
||||
int port_out;
|
||||
|
@ -497,11 +488,8 @@ static DWORD midOpen(WORD wDevID, LPMIDIOPENDESC lpDesc, DWORD dwFlags)
|
|||
MidiInDev[wDevID].wFlags = HIWORD(dwFlags & CALLBACK_TYPEMASK);
|
||||
|
||||
MidiInDev[wDevID].lpQueueHdr = NULL;
|
||||
MidiInDev[wDevID].dwTotalPlayed = 0;
|
||||
MidiInDev[wDevID].bufsize = 0x3FFF;
|
||||
MidiInDev[wDevID].midiDesc = *lpDesc;
|
||||
MidiInDev[wDevID].state = 0;
|
||||
MidiInDev[wDevID].incLen = 0;
|
||||
MidiInDev[wDevID].startTime = 0;
|
||||
|
||||
/* Connect our app port to the device port */
|
||||
|
@ -571,7 +559,6 @@ static DWORD midClose(WORD wDevID)
|
|||
LeaveCriticalSection(&midiSeqLock);
|
||||
midiCloseSeq();
|
||||
|
||||
MidiInDev[wDevID].bufsize = 0;
|
||||
MIDI_NotifyClient(wDevID, MIM_CLOSE, 0L, 0L);
|
||||
MidiInDev[wDevID].midiDesc.hMidi = 0;
|
||||
|
||||
|
@ -752,8 +739,6 @@ static DWORD modOpen(WORD wDevID, LPMIDIOPENDESC lpDesc, DWORD dwFlags)
|
|||
return MMSYSERR_INVALFLAG;
|
||||
}
|
||||
|
||||
MidiOutDev[wDevID].lpExtra = 0;
|
||||
|
||||
switch (MidiOutDev[wDevID].caps.wTechnology) {
|
||||
case MOD_FMSYNTH:
|
||||
case MOD_MIDIPORT:
|
||||
|
@ -769,10 +754,6 @@ static DWORD modOpen(WORD wDevID, LPMIDIOPENDESC lpDesc, DWORD dwFlags)
|
|||
}
|
||||
|
||||
MidiOutDev[wDevID].wFlags = HIWORD(dwFlags & CALLBACK_TYPEMASK);
|
||||
|
||||
MidiOutDev[wDevID].lpQueueHdr = NULL;
|
||||
MidiOutDev[wDevID].dwTotalPlayed = 0;
|
||||
MidiOutDev[wDevID].bufsize = 0x3FFF;
|
||||
MidiOutDev[wDevID].midiDesc = *lpDesc;
|
||||
|
||||
EnterCriticalSection(&midiSeqLock);
|
||||
|
@ -853,10 +834,6 @@ static DWORD modClose(WORD wDevID)
|
|||
return MMSYSERR_NOTENABLED;
|
||||
}
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, MidiOutDev[wDevID].lpExtra);
|
||||
MidiOutDev[wDevID].lpExtra = 0;
|
||||
|
||||
MidiOutDev[wDevID].bufsize = 0;
|
||||
MIDI_NotifyClient(wDevID, MOM_CLOSE, 0L, 0L);
|
||||
MidiOutDev[wDevID].midiDesc.hMidi = 0;
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue