Changeset 21841 for branches/gcc-kmk/src


Ignore:
Timestamp:
Dec 1, 2011, 10:19:11 PM (14 years ago)
Author:
dmik
Message:

Port WINMM, MCICDA and MCIWAVE DLLs to GCC/kBuild.

Location:
branches/gcc-kmk/src/winmm
Files:
5 added
26 edited
2 moved

Legend:

Unmodified
Added
Removed
  • branches/gcc-kmk/src/winmm/IRTMidi.cpp

    r5269 r21841  
    9393  rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDICreateInstance", &modAddr );
    9494  if ( rc ) return rc;
    95   pfnMidiCreateInstance =  (ULONG(*APIENTRY )( ULONG, MINSTANCE*, PSZ, ULONG)) modAddr;
     95  pfnMidiCreateInstance =  (ULONG(APIENTRY *)( ULONG, MINSTANCE*, PCSZ, ULONG)) modAddr;
    9696
    9797  rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDIDeleteInstance", &modAddr );
    9898  if ( rc ) return rc;
    99   pfnMidiDeleteInstance =  (ULONG(*APIENTRY )(MINSTANCE, ULONG)) modAddr;
     99  pfnMidiDeleteInstance =  (ULONG(APIENTRY *)(MINSTANCE, ULONG)) modAddr;
    100100
    101101  rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDIEnableInstance", &modAddr );
    102102  if ( rc ) return rc;
    103   pfnMidiEnableInstance =  (ULONG(*APIENTRY )(MINSTANCE, ULONG)) modAddr;
     103  pfnMidiEnableInstance =  (ULONG(APIENTRY *)(MINSTANCE, ULONG)) modAddr;
    104104
    105105  rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDIDisableInstance", &modAddr );
    106106  if ( rc ) return rc;
    107   pfnMidiDisableInstance = (ULONG(*APIENTRY )(MINSTANCE, ULONG)) modAddr;
     107  pfnMidiDisableInstance = (ULONG(APIENTRY *)(MINSTANCE, ULONG)) modAddr;
    108108
    109109  rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDIAddLink", &modAddr );
    110110  if ( rc ) return rc;
    111   pfnMidiAddLink =         (ULONG(*APIENTRY )(MINSTANCE, MINSTANCE, ULONG, ULONG)) modAddr;
     111  pfnMidiAddLink =         (ULONG(APIENTRY *)(MINSTANCE, MINSTANCE, ULONG, ULONG)) modAddr;
    112112
    113113  rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDIRemoveLink", &modAddr );
    114114  if ( rc ) return rc;
    115   pfnMidiRemoveLink =      (ULONG(*APIENTRY )(MINSTANCE, MINSTANCE, ULONG, ULONG)) modAddr;
     115  pfnMidiRemoveLink =      (ULONG(APIENTRY *)(MINSTANCE, MINSTANCE, ULONG, ULONG)) modAddr;
    116116
    117117  rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDIQueryClassList", &modAddr );
    118118  if ( rc ) return rc;
    119   pfnMidiQueryClassList    = (ULONG(*APIENTRY )(ULONG, PMIDICLASSINFO, ULONG)) modAddr;
     119  pfnMidiQueryClassList    = (ULONG(APIENTRY *)(ULONG, PMIDICLASSINFO, ULONG)) modAddr;
    120120
    121121  rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDIQueryInstanceList", &modAddr );
    122122  if ( rc ) return rc;
    123   pfnMidiQueryInstanceList = (ULONG(*APIENTRY )(ULONG, PMIDIINSTANCEINFO, ULONG)) modAddr;
     123  pfnMidiQueryInstanceList = (ULONG(APIENTRY *)(ULONG, PMIDIINSTANCEINFO, ULONG)) modAddr;
    124124
    125125  rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDIQueryNumClasses", &modAddr );
    126126  if ( rc ) return rc;
    127   pfnMidiQueryNumClasses   = (ULONG(*APIENTRY )(PULONG, ULONG)) modAddr;
     127  pfnMidiQueryNumClasses   = (ULONG(APIENTRY *)(PULONG, ULONG)) modAddr;
    128128
    129129  rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDIQueryNumInstances", &modAddr );
    130130  if ( rc ) return rc;
    131   pfnMidiQueryNumInstances = (ULONG(*APIENTRY )(PULONG, ULONG)) modAddr;
     131  pfnMidiQueryNumInstances = (ULONG(APIENTRY *)(PULONG, ULONG)) modAddr;
    132132
    133133  rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDISendMessages", &modAddr );
    134134  if ( rc ) return rc;
    135   pfnMidiSendMessages      = (ULONG(*APIENTRY )(PMESSAGE, ULONG, ULONG)) modAddr;
     135  pfnMidiSendMessages      = (ULONG(APIENTRY *)(PMESSAGE, ULONG, ULONG)) modAddr;
    136136
    137137  rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDISendSysexMessage", &modAddr );
    138138  if ( rc ) return rc;
    139   pfnMidiSendSysexMessage  = (ULONG(*APIENTRY )(PMESSAGE, ULONG, ULONG)) modAddr;
     139  pfnMidiSendSysexMessage  = (ULONG(APIENTRY *)(PMESSAGE, ULONG, ULONG)) modAddr;
    140140
    141141  rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDIRetrieveMessages", &modAddr );
    142142  if ( rc ) return rc;
    143   pfnMidiRetrieveMessages  = (ULONG(*APIENTRY )(MINSTANCE, PVOID, PULONG, ULONG)) modAddr;
     143  pfnMidiRetrieveMessages  = (ULONG(APIENTRY *)(MINSTANCE, PVOID, PULONG, ULONG)) modAddr;
    144144
    145145  rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDISetup", &modAddr );
    146146  if ( rc ) return rc;
    147   pfnMidiSetup             = (ULONG(*APIENTRY)(PMIDISETUP, ULONG)) modAddr;
     147  pfnMidiSetup             = (ULONG(APIENTRY *)(PMIDISETUP, ULONG)) modAddr;
    148148
    149149  rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDITimer", &modAddr );
    150150  if ( rc ) return rc;
    151   pfnMidiTimer             = (ULONG(*APIENTRY )(ULONG, ULONG)) modAddr;
     151  pfnMidiTimer             = (ULONG(APIENTRY *)(ULONG, ULONG)) modAddr;
    152152
    153153  return 0;
     
    177177// IRTMidi :: RCExplanation
    178178//------------------------------------------------------------------------------
    179 char * IRTMidi::RCExplanation() const
    180 {
    181    char * DebugString;
     179const char * IRTMidi::RCExplanation() const
     180{
     181   const char * DebugString;
    182182   switch( iLastRC )
    183183   {
     
    460460}
    461461
    462 ULONG IRTMidi::MidiCreateInstance( ULONG a, MINSTANCE* b, PSZ c, ULONG d)
     462ULONG IRTMidi::MidiCreateInstance( ULONG a, MINSTANCE* b, PCSZ c, ULONG d)
    463463{
    464464  ULONG ret;
  • branches/gcc-kmk/src/winmm/auxos2.cpp

    r7196 r21841  
    2828
    2929#include "auxiliary.h"
    30 #include "initwinmm.h"
     30#include "initterm.h"
    3131
    3232#define DBG_LOCALLOG    DBG_auxos2
  • branches/gcc-kmk/src/winmm/dbglocal.cpp

    r21358 r21841  
    1919USHORT DbgEnabledLvl2WINMM[DBG_MAXFILES] = {0};
    2020
    21 static char  *DbgFileNames[DBG_MAXFILES] =
     21static const char  *DbgFileNames[DBG_MAXFILES] =
    2222{
    2323"os2timer",
  • branches/gcc-kmk/src/winmm/initterm.cpp

    r21796 r21841  
    1 /* $Id: initwinmm.cpp,v 1.15 2004-04-13 12:49:03 sandervl Exp $
     1/* $Id: initterm.cpp,v 1.20 2001-09-05 10:30:39 bird Exp $
    22 *
    33 * WINMM DLL entry point
     
    77 * Copyright 2000 Chris Wohlgemuth
    88 *
    9  *
    109 * Project Odin Software License can be found in LICENSE.TXT
    11  *
    1210 */
    1311
    14 /*-------------------------------------------------------------*/
    15 /* INITERM.C -- Source for a custom dynamic link library       */
    16 /*              initialization and termination (_DLL_InitTerm) */
    17 /*              function.                                      */
    18 /*                                                             */
    19 /* When called to perform initialization, this sample function */
    20 /* gets storage for an array of integers, and initializes its  */
    21 /* elements with random integers.  At termination time, it     */
    22 /* frees the array.  Substitute your own special processing.   */
    23 /*-------------------------------------------------------------*/
    24 
    25 
    26 /* Include files */
    2712#define  INCL_DOSMODULEMGR
    2813#define  INCL_DOSPROCESS
     
    3520#include <stdio.h>
    3621#include <string.h>
     22#ifndef __GNUC__
    3723#include <builtin.h>
     24#endif
    3825#include <misc.h>       /*PLF Wed  98-03-18 23:19:26*/
    3926#include <odin.h>
     
    4734#include "waveoutbase.h"
    4835#include <win/options.h>
    49 #include "initwinmm.h"
     36#include "initterm.h"
    5037#include <custombuild.h>
    5138#include "mixer.h"
     
    5845void MULTIMEDIA_DeleteIData(void);
    5946
    60 extern "C" {
    61 void IRTMidiShutdown();  // IRTMidi shutdown routine
    62 
    63  //Win32 resource table (produced by wrc)
    64  extern DWORD winmm_PEResTab;
    65 }
     47extern "C" void IRTMidiShutdown(); // IRTMidi shutdown routine
     48
     49// Win32 resource table (produced by wrc)
     50extern DWORD winmm_PEResTab;
     51
    6652static HMODULE dllHandle = 0;
    6753static HMODULE MMPMLibraryHandle = 0;
    6854
    69 static char *szBuggyAudio[] = {
    70 "CWAUD",
    71 "BSAUD",
    72 "CRYSTAL"
     55static const char *szBuggyAudio[] =
     56{
     57    "CWAUD",
     58    "BSAUD",
     59    "CRYSTAL"
    7360};
    7461
     
    7663
    7764DWORD (APIENTRY *pfnmciSendCommand)(WORD   wDeviceID,
    78                                    WORD   wMessage,
    79                                    DWORD  dwParam1,
    80                                    PVOID  dwParam2,
    81                                    WORD   wUserParm) = NULL;
     65                                    WORD   wMessage,
     66                                    DWORD  dwParam1,
     67                                    PVOID  dwParam2,
     68                                    WORD   wUserParm) = NULL;
    8269DWORD (APIENTRY *pfnmciGetErrorString)(DWORD   dwError,
    83                                       LPSTR   lpstrBuffer,
    84                                       WORD    wLength) = NULL;
    85 
    86 //******************************************************************************
    87 //******************************************************************************
     70                                       LPSTR   lpstrBuffer,
     71                                       WORD    wLength) = NULL;
     72
    8873void WIN32API DisableWaveAudio()
    8974{
     
    9277    pfnmciSendCommand    = NULL;
    9378}
    94 //******************************************************************************
    95 //******************************************************************************
     79
    9680BOOL WINAPI LibMainWinmm(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
    9781{
     
    216200   return FALSE;
    217201}
    218 /****************************************************************************/
    219 /* _DLL_InitTerm is the function that gets called by the operating system   */
    220 /* loader when it loads and frees this DLL for each process that accesses   */
    221 /* this DLL.  However, it only gets called the first time the DLL is loaded */
    222 /* and the last time it is freed for a particular process.  The system      */
    223 /* linkage convention MUST be used because the operating system loader is   */
    224 /* calling this function.                                                   */
    225 /****************************************************************************/
    226 ULONG APIENTRY inittermWinmm(ULONG hModule, ULONG ulFlag)
    227 {
    228     /*-------------------------------------------------------------------------*/
    229     /* If ulFlag is zero then the DLL is being loaded so initialization should */
    230     /* be performed.  If ulFlag is 1 then the DLL is being freed so            */
    231     /* termination should be performed.                                        */
    232     /*-------------------------------------------------------------------------*/
    233 
    234     switch (ulFlag)
    235     {
    236     case 0 :
    237         ParseLogStatusWINMM();
    238 
    239         dllHandle = RegisterLxDll(hModule, LibMainWinmm, (PVOID)&winmm_PEResTab);
    240         if(dllHandle == 0)
    241             return 0UL;/* Error */
    242 
    243         dprintf(("winmm init %s %s (%x)", __DATE__, __TIME__, inittermWinmm));
    244         break;
    245     case 1 :
    246         auxOS2Close(); /* SvL: Close aux device if necessary */
    247         if(dllHandle) {
    248             UnregisterLxDll(dllHandle);
    249         }
    250         break;
    251     default  :
    252         return 0UL;
    253     }
    254 
    255     /***********************************************************/
    256     /* A non-zero value must be returned to indicate success.  */
    257     /***********************************************************/
    258     return 1UL;
    259 }
    260 //******************************************************************************
    261 //******************************************************************************
     202
    262203DWORD APIENTRY mymciSendCommand(WORD   wDeviceID,
    263204                                WORD   wMessage,
     
    275216    return ret;
    276217}
    277 //******************************************************************************
    278 //******************************************************************************
     218
    279219DWORD APIENTRY mymciGetErrorString(DWORD   dwError,
    280220                                   LPSTR   lpstrBuffer,
     
    290230    return ret;
    291231}
    292 //******************************************************************************
    293 //******************************************************************************
     232
     233ULONG SYSTEM DLL_InitWinMM32(ULONG hModule)
     234{
     235    CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
     236
     237    ParseLogStatusWINMM();
     238
     239    dllHandle = RegisterLxDll(hModule, LibMainWinmm, (PVOID)&winmm_PEResTab);
     240    if (dllHandle == 0)
     241        return -1;
     242
     243    dprintf(("winmm init %s %s (%x)", __DATE__, __TIME__, DLL_InitWinMM32));
     244
     245    return 0;
     246}
     247
     248void SYSTEM DLL_TermWinMM32(ULONG hModule)
     249{
     250    auxOS2Close(); /* SvL: Close aux device if necessary */
     251
     252    if(dllHandle)
     253        UnregisterLxDll(dllHandle);
     254}
     255
     256ULONG SYSTEM DLL_Init(ULONG hModule)
     257{
     258    if (DLL_InitDefault(hModule) == -1)
     259        return -1;
     260    return DLL_InitWinMM32(hModule);
     261}
     262
     263void SYSTEM DLL_Term(ULONG hModule)
     264{
     265    DLL_TermWinMM32(hModule);
     266    DLL_TermDefault(hModule);
     267}
  • branches/gcc-kmk/src/winmm/initterm.h

    r21796 r21841  
    1 #ifndef __INITWINMM_H__
    2 #define __INITWINMM_H__
     1#ifndef __INITTERM_H__
     2#define __INITTERM_H__
    33
    44extern BOOL fMMPMAvailable;
     
    1414
    1515
    16 #endif //__INITWINMM_H__
     16#endif //__INITTERM_H__
  • branches/gcc-kmk/src/winmm/irtmidi.hpp

    r5269 r21841  
    8787  unsigned long   hardwareClass() const
    8888                  { return iHardwareClass; };
    89   char *          RCExplanation() const;
     89  const char *    RCExplanation() const;
    9090  static IRTMidi* instance();
    9191  static void     shutdown();
     
    103103
    104104  // Methods for calls to RTMIDI functions
    105   ULONG (*APIENTRY pfnMidiCreateInstance)    ( ULONG, MINSTANCE*, PSZ, ULONG );
     105  ULONG (*APIENTRY pfnMidiCreateInstance)    ( ULONG, MINSTANCE*, PCSZ, ULONG );
    106106  ULONG (*APIENTRY pfnMidiDeleteInstance)    ( MINSTANCE, ULONG );
    107107  ULONG (*APIENTRY pfnMidiEnableInstance)    ( MINSTANCE, ULONG );
     
    119119  ULONG (*APIENTRY pfnMidiTimer)             ( ULONG, ULONG );
    120120
    121   ULONG MidiCreateInstance    ( ULONG, MINSTANCE*, PSZ, ULONG );
     121  ULONG MidiCreateInstance    ( ULONG, MINSTANCE*, PCSZ, ULONG );
    122122  ULONG MidiDeleteInstance    ( MINSTANCE, ULONG );
    123123  ULONG MidiEnableInstance    ( MINSTANCE, ULONG );
  • branches/gcc-kmk/src/winmm/mci.cpp

    r10410 r21841  
    157157{
    158158  dprintf(("WINMM:mciGetErrorStringA(%d)\n", mcierr ));
    159   char * theMsg = getWinmmMsg( mcierr );
     159  const char * theMsg = getWinmmMsg( mcierr );
    160160  if ( theMsg )
    161161    strncpy( pszText, theMsg, cchText );
     
    184184{
    185185  dprintf(("WINMM:mciGetErrorStringW(%d)\n", mcierr ));
    186   char * theMsg = getWinmmMsg( mcierr );
     186  const char * theMsg = getWinmmMsg( mcierr );
    187187  if ( theMsg )
    188188    AsciiToUnicodeN( theMsg, pszText, cchText );
  • branches/gcc-kmk/src/winmm/mcicda/mcicda.cpp

    r4982 r21841  
    407407static DWORD CDAUDIO_mciInfo(UINT wDevID, DWORD dwFlags, LPMCI_INFO_PARMSA lpParms)
    408408{
    409     LPSTR               str = NULL;
     409    LPCSTR              str = NULL;
    410410    WINE_MCICDAUDIO*    wmcda = CDAUDIO_mciGetOpenDrv(wDevID);
    411411    DWORD               ret = 0;
     
    758758        break;
    759759    default:
    760         TRACE("Seeking to ??=%lu\n", dwFlags);
     760        TRACE("Seeking to #%lu\n", dwFlags);
    761761        return MCIERR_UNSUPPORTED_FUNCTION;
    762762    }
  • branches/gcc-kmk/src/winmm/mcicda/mcicda.def

    r4809 r21841  
    55
    66EXPORTS
    7     DriverProc      = _MCICDAUDIO_DriverProc@20     @1
     7    DriverProc      = "_MCICDAUDIO_DriverProc@20"   @1
  • branches/gcc-kmk/src/winmm/mcicda/os2cdrom.cpp

    r9976 r21841  
    148148       
    149149    rc = DosDevIOCtl(hfOS2Handle, IOCTL_CDROMAUDIO, CDROMAUDIO_GETAUDIODISK,
    150                      "CD01", 4, &ulParamLen, &cdInfo,
     150                     (void*)"CD01", 4, &ulParamLen, &cdInfo,
    151151                     sizeof(cdInfo), &ulDataLen);
    152152
     
    194194    ulParamLen=4;
    195195    rc = DosDevIOCtl(hfOS2Handle, IOCTL_CDROMDISK, CDROMDISK_DEVICESTATUS,
    196                      "CD01", 4, &ulParamLen, &ulDeviceStatus,
     196                     (void*)"CD01", 4, &ulParamLen, &ulDeviceStatus,
    197197                     sizeof(ulDeviceStatus), &ulDataLen);               
    198198    if(rc) {
     
    218218    /* Get information */
    219219    rc = DosDevIOCtl(hfOS2Handle, IOCTL_CDROMAUDIO, CDROMAUDIO_GETAUDIOSTATUS,
    220                      "CD01", 4, &ulParamLen, &asStatus,
     220                     (void*)"CD01", 4, &ulParamLen, &asStatus,
    221221                     sizeof(asStatus), &ulDataLen);
    222222    if(rc) {
     
    247247        ulParamLen=4;
    248248        rc = DosDevIOCtl(hfDrive, IOCTL_CDROMAUDIO, CDROMAUDIO_GETAUDIODISK,
    249                          "CD01", 4, &ulParamLen, &cdInfo,
     249                         (void*)"CD01", 4, &ulParamLen, &cdInfo,
    250250                         sizeof(cdInfo), &ulDataLen);           
    251251        if(rc)
     
    292292    ulParamLen=4;
    293293    rc = DosDevIOCtl(hfDrive, IOCTL_CDROMDISK, CDROMDISK_EJECTDISK,
    294                      "CD01", 4, &ulParamLen,0,
     294                     (void*)"CD01", 4, &ulParamLen,0,
    295295                     0, 0);             
    296296    if(rc)
     
    314314    ulParamLen=4;
    315315    rc = DosDevIOCtl(hfDrive, IOCTL_CDROMDISK, CDROMDISK_CLOSETRAY,
    316                      "CD01", 4, &ulParamLen,0,
     316                     (void*)"CD01", 4, &ulParamLen,0,
    317317                     0, 0);             
    318318    if(rc)
     
    335335    ulParamLen=4;
    336336    rc = DosDevIOCtl(hfDrive, IOCTL_CDROMAUDIO, CDROMAUDIO_STOPAUDIO,
    337                      "CD01", 4, &ulParamLen,0,
     337                     (void*)"CD01", 4, &ulParamLen,0,
    338338                     0, 0);             
    339339    if(rc)
     
    396396    ulParamLen=4;
    397397    rc = DosDevIOCtl(hfDrive, IOCTL_CDROMAUDIO, CDROMAUDIO_RESUMEAUDIO,
    398                      "CD01", 4, &ulParamLen,0,
     398                     (void*)"CD01", 4, &ulParamLen,0,
    399399                     0, 0);             
    400400    if(rc)
     
    484484    ulParamLen=4;
    485485    rc = DosDevIOCtl(hfOS2Handle, IOCTL_CDROMAUDIO, CDROMAUDIO_GETSUBCHANNELQ,
    486                      "CD01", 4, &ulParamLen, &scq,
     486                     (void*)"CD01", 4, &ulParamLen, &scq,
    487487                     sizeof(scq), &ulDataLen);         
    488488    if(rc) {
  • branches/gcc-kmk/src/winmm/mciwave/mciwave.c

    r10410 r21841  
    2323
    2424#include <stdarg.h>
     25#include <string.h>
     26#include <memory.h>
    2527
    2628#include "winerror.h"
  • branches/gcc-kmk/src/winmm/mciwave/mciwave.def

    r4809 r21841  
    66
    77EXPORTS
    8     DriverProc      = _MCIWAVE_DriverProc@20        @1
     8    DriverProc      = "_MCIWAVE_DriverProc@20"      @1
  • branches/gcc-kmk/src/winmm/midi.cpp

    r10173 r21841  
    3838*/
    3939
    40 char * getWinmmMsg( MMRESULT result )
    41 {
    42   char * ret;
     40const char * getWinmmMsg( MMRESULT result )
     41{
     42  const char * ret;
    4343  switch ( result )
    4444  {
     
    243243{
    244244  dprintf(("WINMM:midiInGetErrorTextA(%d)\n", wError ));
    245   char * theMsg = getWinmmMsg( wError );
     245  const char * theMsg = getWinmmMsg( wError );
    246246  if ( theMsg )
    247247    strncpy( lpText, theMsg, cchText );
     
    260260{
    261261  dprintf(("WINMM:midiInGetErrorTextW(%d)\n", wError ));
    262   char * theMsg = getWinmmMsg( wError );
     262  const char * theMsg = getWinmmMsg( wError );
    263263  if ( theMsg )
    264264    AsciiToUnicodeN( theMsg, lpText, cchText );
     
    563563{
    564564  dprintf(("WINMM:midiOutGetErrorTextA(%d)\n", wError ));
    565   char * theMsg = getWinmmMsg( wError );
     565  const char * theMsg = getWinmmMsg( wError );
    566566  if ( theMsg )
    567567    strncpy( lpText, theMsg, cchText );
     
    579579{
    580580  dprintf(("WINMM:midiOutGetErrorTextW(%d) - need to translate\n", wError ));
    581   char * theMsg = getWinmmMsg( wError );
     581  const char * theMsg = getWinmmMsg( wError );
    582582  if ( theMsg )
    583583    AsciiToUnicodeN( theMsg, lpText, cchText );
  • branches/gcc-kmk/src/winmm/mixer.cpp

    r21570 r21841  
    3434#include "waveoutdart.h"
    3535#include "winmm.h"
    36 #include "initwinmm.h"
     36#include "initterm.h"
    3737#include "mixer.h"
    3838#include "mixeros2.h"
     
    749749        //find line associated with this control
    750750        lpMlc->dwLineID = -1;
    751         for(int i=0;i<nrLines;i++) {
     751        int i;
     752        for(i=0;i<nrLines;i++) {
    752753            for(int j=0;j<pmixerLines[i]->cControls;j++) {
    753754                if(pmixerLines[i]->Controls[j] == lpMlc->u.dwControlID) {
     
    10861087#endif
    10871088        //search all lines (src & dest) for one with specified type
    1088         for(int i=0;i<nrLines;i++) {
     1089        int i;
     1090        for(i=0;i<nrLines;i++) {
    10891091            if(pmixerLines[i]->line.dwComponentType == lpMl->dwComponentType) {
    10901092                break;
     
    11301132        //TODO: Should we compare mid, pid & pddname too? (must be initialized according to MSDN)
    11311133        //      (see below; unicode version doesn't copy pddname; change if these checks are required)
     1134        int i;
    11321135        for(int i=0;i<nrLines;i++) {
    11331136            if(pmixerLines[i]->line.Target.dwType == lpMl->Target.dwType) {
     
    13711374
    13721375    memset(mixerDest, 0, sizeof(mixerDest));
    1373     for(int i=0;i<MIXER_DEST_MAX;i++) {
     1376    int i;
     1377    for(i=0;i<MIXER_DEST_MAX;i++) {
    13741378        memset(mixerDest[i].Connections, -1, sizeof(mixerDest[i].Connections));
    13751379        memset(mixerDest[i].Controls, -1, sizeof(mixerDest[i].Controls));
  • branches/gcc-kmk/src/winmm/mixer.h

    r8495 r21841  
    5656void mixerExit();
    5757
    58 extern char *szCtrlName[MIX_CTRL_MAX][2];
    59 extern char *szSourceName[MIXER_SRC_MAX][2];
    60 extern char *szDestName[MIXER_DEST_MAX][2];
     58extern const char *szCtrlName[MIX_CTRL_MAX][2];
     59extern const char *szSourceName[MIXER_SRC_MAX][2];
     60extern const char *szDestName[MIXER_DEST_MAX][2];
    6161
    6262#ifdef __cplusplus
  • branches/gcc-kmk/src/winmm/mixerdata.cpp

    r8493 r21841  
    1717/******************************************************************************/
    1818/******************************************************************************/
    19 char *szCtrlName[MIX_CTRL_MAX][2] = {
     19const char *szCtrlName[MIX_CTRL_MAX][2] = {
    2020    {
    2121        "MasterVol",
     
    201201/******************************************************************************/
    202202/******************************************************************************/
    203 char *szDestName[MIXER_DEST_MAX][2] = {
     203const char *szDestName[MIXER_DEST_MAX][2] = {
    204204  {
    205205      "Volume Control",
     
    217217/******************************************************************************/
    218218/******************************************************************************/
    219 char *szSourceName[MIXER_SRC_MAX][2] = {
     219const char *szSourceName[MIXER_SRC_MAX][2] = {
    220220  {
    221221      "MonoIn",
  • branches/gcc-kmk/src/winmm/mixeros2.cpp

    r8858 r21841  
    2323#include <ioctl90.h>
    2424
    25 #include "initwinmm.h"
     25#include "initterm.h"
    2626#include "mixeros2.h"
    2727
  • branches/gcc-kmk/src/winmm/playsound.cpp

    r21720 r21841  
    1717 * Includes                                                                 *
    1818 ****************************************************************************/
     19
     20#include <string.h>
    1921
    2022#include <os2win.h>
     
    2325#include <heapstring.h>
    2426#include <misc.h>
    25 #include <string.h>
    2627#include <win/debugtools.h>
    2728
  • branches/gcc-kmk/src/winmm/wavein.cpp

    r21358 r21841  
    2828#include "winmm.h"
    2929#include "waveindart.h"
    30 #include "initwinmm.h"
     30#include "initterm.h"
    3131
    3232#define DBG_LOCALLOG    DBG_wavein
     
    281281{
    282282    dprintf(("WINMM:waveInGetErrorTextA(%d)\n", wError ));
    283     char * theMsg = getWinmmMsg( wError );
     283    const char * theMsg = getWinmmMsg( wError );
    284284    if ( theMsg )
    285285        strncpy( lpText, theMsg, cchText );
     
    297297{
    298298    dprintf(("WINMM:waveInGetErrorTextW(%d) - stub\n", wError ));
    299     char * theMsg = getWinmmMsg( wError );
     299    const char * theMsg = getWinmmMsg( wError );
    300300    if ( theMsg )
    301301        AsciiToUnicodeN( theMsg, lpText, cchText );
  • branches/gcc-kmk/src/winmm/waveindart.cpp

    r21358 r21841  
    2828#include "misc.h"
    2929#include "waveindart.h"
    30 #include "initwinmm.h"
     30#include "initterm.h"
    3131
    3232#define DBG_LOCALLOG    DBG_waveindart
  • branches/gcc-kmk/src/winmm/waveout.cpp

    r21358 r21841  
    3131#include "misc.h"
    3232#include "winmm.h"
    33 #include "initwinmm.h"
     33#include "initterm.h"
    3434
    3535#define DBG_LOCALLOG    DBG_waveout
     
    315315MMRESULT WINAPI waveOutGetErrorTextA(MMRESULT wError, LPSTR lpText, UINT cchText)
    316316{
    317     char * theMsg = getWinmmMsg( wError );
     317    const char * theMsg = getWinmmMsg( wError );
    318318    if(theMsg) {
    319319        strncpy( lpText, theMsg, cchText );
     
    331331MMRESULT WINAPI waveOutGetErrorTextW(MMRESULT wError, LPWSTR lpText, UINT cchText)
    332332{
    333     char * theMsg = getWinmmMsg( wError );
     333    const char * theMsg = getWinmmMsg( wError );
    334334    if(theMsg) {
    335335        AsciiToUnicodeN( theMsg, lpText, cchText );
  • branches/gcc-kmk/src/winmm/waveoutbase.cpp

    r21358 r21841  
    3030#include "misc.h"
    3131#include "waveoutbase.h"
    32 #include "initwinmm.h"
     32#include "initterm.h"
    3333
    3434#define DBG_LOCALLOG    DBG_waveoutbase
  • branches/gcc-kmk/src/winmm/waveoutdart.cpp

    r21358 r21841  
    3333#include "misc.h"
    3434#include "waveoutdart.h"
    35 #include "initwinmm.h"
     35#include "initterm.h"
    3636
    3737#define DBG_LOCALLOG    DBG_waveoutdart
     
    759759    dprintf2(("WaveOutHandler %x %x %x", ulStatus, pBuffer, ulFlags));
    760760
     761#ifdef __IBMC__
    761762    ptib2 = (PTIB2)_getTIBvalue(offsetof(TIB, tib_ptib2));
     763#else
     764    PTIB ptib;
     765    DosGetInfoBlocks(&ptib, NULL);
     766    ptib2 = ptib->tib_ptib2;
     767#endif
     768
    762769    if (ptib2 && HIBYTE(ptib2->tib2_ulpri) != PRTYC_TIMECRITICAL &&
    763770       LOBYTE(ptib2->tib2_ulpri) != PRTYD_MAXIMUM)
  • branches/gcc-kmk/src/winmm/waveoutflash.cpp

    r21358 r21841  
    3131#include "misc.h"
    3232#include "waveoutflash.h"
    33 #include "initwinmm.h"
     33#include "initterm.h"
    3434
    3535#define DBG_LOCALLOG    DBG_waveoutflash
     
    338338    MCI_BUFFER_PARMS  BufferParms;
    339339
    340     dprintf((__FUNCTION__" - bufsize= %d", dartBufSize));
     340    dprintf(("$ - bufsize= %d", __FUNCTION__, dartBufSize));
    341341
    342342    // Set up the BufferParms data structure and
     
    763763// Displays the text associated with an MCI error code.
    764764
    765 void FlashWaveOut::mciError(char * msg, ULONG rc)
     765void FlashWaveOut::mciError(const char * msg, ULONG rc)
    766766{
    767767#ifdef DEBUG
  • branches/gcc-kmk/src/winmm/waveoutflash.h

    r21358 r21841  
    4848          void      writeBuffer();
    4949          void      handler(ULONG ulStatus, PMCI_MIX_BUFFER pBuffer, ULONG ulFlags);
    50           void      mciError(char * msg, ULONG rc);
     50          void      mciError(const char * msg, ULONG rc);
    5151
    5252private:
     
    7070};
    7171
     72LONG APIENTRY FlashWaveOutHandler(ULONG ulStatus, PMCI_MIX_BUFFER pBuffer,
     73                                  ULONG ulFlags);
     74
    7275#endif
    7376
  • branches/gcc-kmk/src/winmm/winmm.def

    r21692 r21841  
    99
    1010; DRIVER
    11      PlaySoundA                 = _PlaySoundA@12           @2
    12      CloseDriver                = _CloseDriver@12          @5
    13      DefDriverProc              = _DefDriverProc@20        @6
    14      DriverCallback             = _DriverCallback@28       @7
    15      DrvClose                   = _CloseDriver@12          @8
    16      DrvDefDriverProc           = _DefDriverProc@20        @9
    17      DrvGetModuleHandle         = _GetDriverModuleHandle@4 @10
    18      DrvOpen                    = _OpenDriverA@12          @11
    19      DrvOpenA                   = _OpenDriverA@12          @12
    20      DrvSendMessage             = _SendDriverMessage@16    @13
    21      GetDriverFlags             = _GetDriverFlags@4        @14
    22      GetDriverModuleHandle      = _GetDriverModuleHandle@4 @15
    23      OpenDriver                 = _OpenDriverA@12          @16
    24      OpenDriverA                = _OpenDriverA@12          @17
    25      PlaySound                  = _PlaySoundA@12           @18
    26      PlaySoundW                 = _PlaySoundW@12           @19
    27      SendDriverMessage          = _SendDriverMessage@16    @20
     11     PlaySoundA                 = "_PlaySoundA@12"         @2
     12     CloseDriver                = "_CloseDriver@12"        @5
     13     DefDriverProc              = "_DefDriverProc@20"      @6
     14     DriverCallback             = "_DriverCallback@28"     @7
     15     DrvClose                   = "_CloseDriver@12"        @8
     16     DrvDefDriverProc           = "_DefDriverProc@20"      @9
     17     DrvGetModuleHandle         = "_GetDriverModuleHandle@4" @10
     18     DrvOpen                    = "_OpenDriverA@12"        @11
     19     DrvOpenA                   = "_OpenDriverA@12"        @12
     20     DrvSendMessage             = "_SendDriverMessage@16"  @13
     21     GetDriverFlags             = "_GetDriverFlags@4"      @14
     22     GetDriverModuleHandle      = "_GetDriverModuleHandle@4" @15
     23     OpenDriver                 = "_OpenDriverA@12"        @16
     24     OpenDriverA                = "_OpenDriverA@12"        @17
     25     PlaySound                  = "_PlaySoundA@12"         @18
     26     PlaySoundW                 = "_PlaySoundW@12"         @19
     27     SendDriverMessage          = "_SendDriverMessage@16"  @20
    2828
    2929; AUX
    30     auxGetDevCapsA             = _auxGetDevCapsA@12          @21
    31     auxGetDevCapsW             = _auxGetDevCapsW@12          @22
    32     auxGetNumDevs              = _auxGetNumDevs@0            @23
    33     auxGetVolume               = _auxGetVolume@8             @24
    34     auxOutMessage              = _auxOutMessage@16           @25
    35     auxSetVolume               = _auxSetVolume@8             @26
     30    auxGetDevCapsA             = "_auxGetDevCapsA@12"        @21
     31    auxGetDevCapsW             = "_auxGetDevCapsW@12"        @22
     32    auxGetNumDevs              = "_auxGetNumDevs@0"          @23
     33    auxGetVolume               = "_auxGetVolume@8"           @24
     34    auxOutMessage              = "_auxOutMessage@16"         @25
     35    auxSetVolume               = "_auxSetVolume@8"           @26
    3636; JOY
    37     joyConfigChanged           = _joyConfigChanged@4         @27
    38     joyGetDevCapsA             = _joyGetDevCapsA@12          @28
    39     joyGetDevCapsW             = _joyGetDevCapsW@12          @29
    40     joyGetNumDevs              = _joyGetNumDevs@0            @30
    41     joyGetPos                  = _joyGetPos@8                @31
    42     joyGetPosEx                = _joyGetPosEx@8              @32
    43     joyGetThreshold            = _joyGetThreshold@8          @33
    44     joyReleaseCapture          = _joyReleaseCapture@4        @34
    45     joySetCapture              = _joySetCapture@16           @35
    46     joySetThreshold            = _joySetThreshold@8          @36
     37    joyConfigChanged           = "_joyConfigChanged@4"       @27
     38    joyGetDevCapsA             = "_joyGetDevCapsA@12"        @28
     39    joyGetDevCapsW             = "_joyGetDevCapsW@12"        @29
     40    joyGetNumDevs              = "_joyGetNumDevs@0"          @30
     41    joyGetPos                  = "_joyGetPos@8"              @31
     42    joyGetPosEx                = "_joyGetPosEx@8"            @32
     43    joyGetThreshold            = "_joyGetThreshold@8"        @33
     44    joyReleaseCapture          = "_joyReleaseCapture@4"      @34
     45    joySetCapture              = "_joySetCapture@16"         @35
     46    joySetThreshold            = "_joySetThreshold@8"        @36
    4747; MCI
    48     mciDriverNotify            = _mciDriverNotify@12         @37
    49     mciDriverYield             = _mciDriverYield@4           @38
    50     mciExecute                 = _mciExecute@4               @39
    51     mciFreeCommandResource     = _mciFreeCommandResource@4  @40
    52     mciGetCreatorTask          = _mciGetCreatorTask@4        @41
    53     mciGetDeviceIDA            = _mciGetDeviceIDA@4          @42
    54     mciGetDeviceIDFromElementIDW  = _mciGetDeviceIDFromElementIDW@8  @43
    55     mciGetDeviceIDW            = _mciGetDeviceIDW@4          @44
    56     mciGetDriverData           = _mciGetDriverData@4         @45
    57     mciGetErrorStringA         = _mciGetErrorStringA@12      @46
    58     mciGetErrorStringW         = _mciGetErrorStringW@12      @47
    59     mciGetYieldProc            = _mciGetYieldProc@8          @48
    60     mciLoadCommandResource     = _mciLoadCommandResource@12  @49
    61     mciSendCommandA            = _mciSendCommandA@16         @50
    62     mciSendCommandW            = _mciSendCommandW@16         @51
    63     mciSendStringA             = _mciSendStringA@16          @52
    64     mciSendStringW             = _mciSendStringW@16          @53
    65     mciSetDriverData           = _mciSetDriverData@8         @54
    66     mciSetYieldProc            = _mciSetYieldProc@12         @55
     48    mciDriverNotify            = "_mciDriverNotify@12"       @37
     49    mciDriverYield             = "_mciDriverYield@4"         @38
     50    mciExecute                 = "_mciExecute@4"             @39
     51    mciFreeCommandResource     = "_mciFreeCommandResource@4" @40
     52    mciGetCreatorTask          = "_mciGetCreatorTask@4"      @41
     53    mciGetDeviceIDA            = "_mciGetDeviceIDA@4"        @42
     54    mciGetDeviceIDFromElementIDW  = "_mciGetDeviceIDFromElementIDW@8"  @43
     55    mciGetDeviceIDW            = "_mciGetDeviceIDW@4"        @44
     56    mciGetDriverData           = "_mciGetDriverData@4"       @45
     57    mciGetErrorStringA         = "_mciGetErrorStringA@12"    @46
     58    mciGetErrorStringW         = "_mciGetErrorStringW@12"    @47
     59    mciGetYieldProc            = "_mciGetYieldProc@8"        @48
     60    mciLoadCommandResource     = "_mciLoadCommandResource@12"  @49
     61    mciSendCommandA            = "_mciSendCommandA@16"       @50
     62    mciSendCommandW            = "_mciSendCommandW@16"       @51
     63    mciSendStringA             = "_mciSendStringA@16"        @52
     64    mciSendStringW             = "_mciSendStringW@16"        @53
     65    mciSetDriverData           = "_mciSetDriverData@8"       @54
     66    mciSetYieldProc            = "_mciSetYieldProc@12"       @55
    6767;
    6868; MIDI
    69     midiConnect                = _midiConnect@12             @56
    70     midiDisconnect             = _midiDisconnect@12          @57
    71     midiInAddBuffer            = _midiInAddBuffer@12         @58
    72     midiInClose                = _midiInClose@4              @59
    73     midiInGetDevCapsA          = _midiInGetDevCapsA@12       @60
    74     midiInGetDevCapsW          = _midiInGetDevCapsW@12       @61
    75     midiInGetErrorTextA        = _midiInGetErrorTextA@12     @62
    76     midiInGetErrorTextW        = _midiInGetErrorTextW@12     @63
    77     midiInGetID                = _midiInGetID@8              @64
    78     midiInGetNumDevs           = _midiInGetNumDevs@0         @65
    79     midiInMessage              = _midiInMessage@16           @66
    80     midiInOpen                 = _midiInOpen@20              @67
    81     midiInPrepareHeader        = _midiInPrepareHeader@12     @68
    82     midiInReset                = _midiInReset@4              @69
    83     midiInStart                = _midiInStart@4              @70
    84     midiInStop                 = _midiInStop@4               @71
    85     midiInUnprepareHeader      = _midiInUnprepareHeader@12  @72
    86     midiOutCacheDrumPatches    = _midiOutCacheDrumPatches@16 @73
    87     midiOutCachePatches        = _midiOutCachePatches@16     @74
    88     midiOutClose               = _midiOutClose@4             @75
    89     midiOutGetDevCapsA         = _midiOutGetDevCapsA@12      @76
    90     midiOutGetDevCapsW         = _midiOutGetDevCapsW@12      @77
    91     midiOutGetErrorTextA       = _midiOutGetErrorTextA@12    @78
    92     midiOutGetErrorTextW       = _midiOutGetErrorTextW@12    @79
    93     midiOutGetID               = _midiOutGetID@8             @80
    94     midiOutGetNumDevs          = _midiOutGetNumDevs@0        @81
    95     midiOutGetVolume           = _midiOutGetVolume@8         @82
    96     midiOutLongMsg             = _midiOutLongMsg@12          @83
    97     midiOutMessage             = _midiOutMessage@16          @84
    98     midiOutOpen                = _midiOutOpen@20             @85
    99     midiOutPrepareHeader       = _midiOutPrepareHeader@12    @86
    100     midiOutReset               = _midiOutReset@4             @87
    101     midiOutSetVolume           = _midiOutSetVolume@8         @88
    102     midiOutShortMsg            = _midiOutShortMsg@8          @89
    103     midiOutUnprepareHeader     = _midiOutUnprepareHeader@12  @90
    104     midiStreamClose            = _midiStreamClose@4          @91
    105     midiStreamOpen             = _midiStreamOpen@24          @92
    106     midiStreamOut              = _midiStreamOut@12           @93
    107     midiStreamPause            = _midiStreamPause@4          @94
    108     midiStreamPosition         = _midiStreamPosition@12      @95
    109     midiStreamProperty         = _midiStreamProperty@12      @96
    110     midiStreamRestart          = _midiStreamRestart@4        @97
    111     midiStreamStop             = _midiStreamStop@4           @98
     69    midiConnect                = "_midiConnect@12"           @56
     70    midiDisconnect             = "_midiDisconnect@12"        @57
     71    midiInAddBuffer            = "_midiInAddBuffer@12"       @58
     72    midiInClose                = "_midiInClose@4"            @59
     73    midiInGetDevCapsA          = "_midiInGetDevCapsA@12"     @60
     74    midiInGetDevCapsW          = "_midiInGetDevCapsW@12"     @61
     75    midiInGetErrorTextA        = "_midiInGetErrorTextA@12"   @62
     76    midiInGetErrorTextW        = "_midiInGetErrorTextW@12"   @63
     77    midiInGetID                = "_midiInGetID@8"            @64
     78    midiInGetNumDevs           = "_midiInGetNumDevs@0"       @65
     79    midiInMessage              = "_midiInMessage@16"         @66
     80    midiInOpen                 = "_midiInOpen@20"            @67
     81    midiInPrepareHeader        = "_midiInPrepareHeader@12"   @68
     82    midiInReset                = "_midiInReset@4"            @69
     83    midiInStart                = "_midiInStart@4"            @70
     84    midiInStop                 = "_midiInStop@4"             @71
     85    midiInUnprepareHeader      = "_midiInUnprepareHeader@12" @72
     86    midiOutCacheDrumPatches    = "_midiOutCacheDrumPatches@16" @73
     87    midiOutCachePatches        = "_midiOutCachePatches@16"   @74
     88    midiOutClose               = "_midiOutClose@4"           @75
     89    midiOutGetDevCapsA         = "_midiOutGetDevCapsA@12"    @76
     90    midiOutGetDevCapsW         = "_midiOutGetDevCapsW@12"    @77
     91    midiOutGetErrorTextA       = "_midiOutGetErrorTextA@12"  @78
     92    midiOutGetErrorTextW       = "_midiOutGetErrorTextW@12"  @79
     93    midiOutGetID               = "_midiOutGetID@8"           @80
     94    midiOutGetNumDevs          = "_midiOutGetNumDevs@0"      @81
     95    midiOutGetVolume           = "_midiOutGetVolume@8"       @82
     96    midiOutLongMsg             = "_midiOutLongMsg@12"        @83
     97    midiOutMessage             = "_midiOutMessage@16"        @84
     98    midiOutOpen                = "_midiOutOpen@20"           @85
     99    midiOutPrepareHeader       = "_midiOutPrepareHeader@12"  @86
     100    midiOutReset               = "_midiOutReset@4"           @87
     101    midiOutSetVolume           = "_midiOutSetVolume@8"       @88
     102    midiOutShortMsg            = "_midiOutShortMsg@8"        @89
     103    midiOutUnprepareHeader     = "_midiOutUnprepareHeader@12"  @90
     104    midiStreamClose            = "_midiStreamClose@4"        @91
     105    midiStreamOpen             = "_midiStreamOpen@24"        @92
     106    midiStreamOut              = "_midiStreamOut@12"         @93
     107    midiStreamPause            = "_midiStreamPause@4"        @94
     108    midiStreamPosition         = "_midiStreamPosition@12"    @95
     109    midiStreamProperty         = "_midiStreamProperty@12"    @96
     110    midiStreamRestart          = "_midiStreamRestart@4"      @97
     111    midiStreamStop             = "_midiStreamStop@4"         @98
    112112; MIXER
    113     mixerClose                 = _mixerClose@4               @99
    114     mixerGetControlDetailsA    = _mixerGetControlDetailsA@12 @100
    115     mixerGetControlDetailsW    = _mixerGetControlDetailsW@12 @101
    116     mixerGetDevCapsA           = _mixerGetDevCapsA@12        @102
    117     mixerGetDevCapsW           = _mixerGetDevCapsW@12        @103
    118     mixerGetID                 = _mixerGetID@12              @104
    119     mixerGetLineControlsA      = _mixerGetLineControlsA@12  @105
    120     mixerGetLineControlsW      = _mixerGetLineControlsW@12  @106
    121     mixerGetLineInfoA          = _mixerGetLineInfoA@12       @107
    122     mixerGetLineInfoW          = _mixerGetLineInfoW@12       @108
    123     mixerGetNumDevs            = _mixerGetNumDevs@0          @109
    124     mixerMessage               = _mixerMessage@16            @110
    125     mixerOpen                  = _mixerOpen@20               @111
    126     mixerSetControlDetails     = _mixerSetControlDetails@12  @112
     113    mixerClose                 = "_mixerClose@4"             @99
     114    mixerGetControlDetailsA    = "_mixerGetControlDetailsA@12" @100
     115    mixerGetControlDetailsW    = "_mixerGetControlDetailsW@12" @101
     116    mixerGetDevCapsA           = "_mixerGetDevCapsA@12"      @102
     117    mixerGetDevCapsW           = "_mixerGetDevCapsW@12"      @103
     118    mixerGetID                 = "_mixerGetID@12"            @104
     119    mixerGetLineControlsA      = "_mixerGetLineControlsA@12" @105
     120    mixerGetLineControlsW      = "_mixerGetLineControlsW@12" @106
     121    mixerGetLineInfoA          = "_mixerGetLineInfoA@12"     @107
     122    mixerGetLineInfoW          = "_mixerGetLineInfoW@12"     @108
     123    mixerGetNumDevs            = "_mixerGetNumDevs@0"        @109
     124    mixerMessage               = "_mixerMessage@16"          @110
     125    mixerOpen                  = "_mixerOpen@20"             @111
     126    mixerSetControlDetails     = "_mixerSetControlDetails@12"  @112
    127127; MMIO
    128     mmioAdvance                = _mmioAdvance@12             @113
    129     mmioAscend                 = _mmioAscend@12              @114
    130     mmioClose                  = _mmioClose@8                @115
    131     mmioCreateChunk            = _mmioCreateChunk@12         @116
    132     mmioDescend                = _mmioDescend@16             @117
    133     mmioFlush                  = _mmioFlush@8                @118
    134     mmioGetInfo                = _mmioGetInfo@12             @119
     128    mmioAdvance                = "_mmioAdvance@12"           @113
     129    mmioAscend                 = "_mmioAscend@12"            @114
     130    mmioClose                  = "_mmioClose@8"              @115
     131    mmioCreateChunk            = "_mmioCreateChunk@12"       @116
     132    mmioDescend                = "_mmioDescend@16"           @117
     133    mmioFlush                  = "_mmioFlush@8"              @118
     134    mmioGetInfo                = "_mmioGetInfo@12"           @119
    135135;    mmioInstallIOProc16        = _mmioInstallIOProc16@??     @120
    136     mmioInstallIOProcA         = _mmioInstallIOProcA@12      @121
    137     mmioInstallIOProcW         = _mmioInstallIOProcW@12      @122
    138     mmioOpenA                  = _mmioOpenA@12               @123
    139     mmioOpenW                  = _mmioOpenW@12               @124
    140     mmioRead                   = _mmioRead@12                @125
    141     mmioRenameA                = _mmioRenameA@16             @126
    142     mmioRenameW                = _mmioRenameW@16             @127
    143     mmioSeek                   = _mmioSeek@12                @128
    144     mmioSendMessage            = _mmioSendMessage@16         @129
    145     mmioSetBuffer              = _mmioSetBuffer@16           @130
    146     mmioSetInfo                = _mmioSetInfo@12             @131
    147     mmioStringToFOURCCA        = _mmioStringToFOURCCA@8  @132
    148     mmioStringToFOURCCW        = _mmioStringToFOURCCW@8  @133
    149     mmioWrite                  = _mmioWrite@12               @134
    150 
    151     mmsystemGetVersion         = _mmsystemGetVersion@0       @135
    152     sndPlaySoundA              = _sndPlaySoundA@8            @136
    153     sndPlaySoundW              = _sndPlaySoundW@8            @137
    154     timeBeginPeriod            = _timeBeginPeriod@4          @138
    155     timeEndPeriod              = _timeEndPeriod@4            @139
    156     timeGetDevCaps             = _timeGetDevCaps@8           @140
    157     timeGetSystemTime          = _timeGetSystemTime@8        @141
    158     timeGetTime                = _timeGetTime@0              @142
    159     timeKillEvent              = _timeKillEvent@4            @143
    160     timeSetEvent               = _timeSetEvent@20            @144
     136    mmioInstallIOProcA         = "_mmioInstallIOProcA@12"    @121
     137    mmioInstallIOProcW         = "_mmioInstallIOProcW@12"    @122
     138    mmioOpenA                  = "_mmioOpenA@12"             @123
     139    mmioOpenW                  = "_mmioOpenW@12"             @124
     140    mmioRead                   = "_mmioRead@12"              @125
     141    mmioRenameA                = "_mmioRenameA@16"           @126
     142    mmioRenameW                = "_mmioRenameW@16"           @127
     143    mmioSeek                   = "_mmioSeek@12"              @128
     144    mmioSendMessage            = "_mmioSendMessage@16"       @129
     145    mmioSetBuffer              = "_mmioSetBuffer@16"         @130
     146    mmioSetInfo                = "_mmioSetInfo@12"           @131
     147    mmioStringToFOURCCA        = "_mmioStringToFOURCCA@8" @132
     148    mmioStringToFOURCCW        = "_mmioStringToFOURCCW@8" @133
     149    mmioWrite                  = "_mmioWrite@12"             @134
     150
     151    mmsystemGetVersion         = "_mmsystemGetVersion@0"     @135
     152    sndPlaySoundA              = "_sndPlaySoundA@8"          @136
     153    sndPlaySoundW              = "_sndPlaySoundW@8"          @137
     154    timeBeginPeriod            = "_timeBeginPeriod@4"        @138
     155    timeEndPeriod              = "_timeEndPeriod@4"          @139
     156    timeGetDevCaps             = "_timeGetDevCaps@8"         @140
     157    timeGetSystemTime          = "_timeGetSystemTime@8"      @141
     158    timeGetTime                = "_timeGetTime@0"            @142
     159    timeKillEvent              = "_timeKillEvent@4"          @143
     160    timeSetEvent               = "_timeSetEvent@20"          @144
    161161; WAVEIN
    162     waveInAddBuffer            = _waveInAddBuffer@12         @145
    163     waveInClose                = _waveInClose@4              @146
    164     waveInGetDevCapsA          = _waveInGetDevCapsA@12       @147
    165     waveInGetDevCapsW          = _waveInGetDevCapsW@12       @148
    166     waveInGetErrorTextA        = _waveInGetErrorTextA@12     @149
    167     waveInGetErrorTextW        = _waveInGetErrorTextW@12     @150
    168     waveInGetID                = _waveInGetID@8              @151
    169     waveInGetNumDevs           = _waveInGetNumDevs@0         @152
    170     waveInGetPosition          = _waveInGetPosition@12       @153
    171     waveInMessage              = _waveInMessage@16           @154
    172     waveInOpen                 = _waveInOpen@24              @155
    173     waveInPrepareHeader        = _waveInPrepareHeader@12     @156
    174     waveInReset                = _waveInReset@4              @157
    175     waveInStart                = _waveInStart@4              @158
    176     waveInStop                 = _waveInStop@4               @159
    177     waveInUnprepareHeader      = _waveInUnprepareHeader@12  @160
     162    waveInAddBuffer            = "_waveInAddBuffer@12"       @145
     163    waveInClose                = "_waveInClose@4"            @146
     164    waveInGetDevCapsA          = "_waveInGetDevCapsA@12"     @147
     165    waveInGetDevCapsW          = "_waveInGetDevCapsW@12"     @148
     166    waveInGetErrorTextA        = "_waveInGetErrorTextA@12"   @149
     167    waveInGetErrorTextW        = "_waveInGetErrorTextW@12"   @150
     168    waveInGetID                = "_waveInGetID@8"            @151
     169    waveInGetNumDevs           = "_waveInGetNumDevs@0"       @152
     170    waveInGetPosition          = "_waveInGetPosition@12"     @153
     171    waveInMessage              = "_waveInMessage@16"         @154
     172    waveInOpen                 = "_waveInOpen@24"            @155
     173    waveInPrepareHeader        = "_waveInPrepareHeader@12"   @156
     174    waveInReset                = "_waveInReset@4"            @157
     175    waveInStart                = "_waveInStart@4"            @158
     176    waveInStop                 = "_waveInStop@4"             @159
     177    waveInUnprepareHeader      = "_waveInUnprepareHeader@12" @160
    178178; WAVEOUT
    179     waveOutBreakLoop           = _waveOutBreakLoop@4         @161
    180     waveOutClose               = _waveOutClose@4             @162
    181     waveOutGetDevCapsA         = _waveOutGetDevCapsA@12      @163
    182     waveOutGetDevCapsW         = _waveOutGetDevCapsW@12      @164
    183     waveOutGetErrorTextA       = _waveOutGetErrorTextA@12    @165
    184     waveOutGetErrorTextW       = _waveOutGetErrorTextW@12    @166
    185     waveOutGetID               = _waveOutGetID@8             @167
    186     waveOutGetNumDevs          = _waveOutGetNumDevs@0        @168
    187     waveOutGetPitch            = _waveOutGetPitch@8          @169
    188     waveOutGetPlaybackRate     = _waveOutGetPlaybackRate@8  @170
    189     waveOutGetPosition         = _waveOutGetPosition@12      @171
    190     waveOutGetVolume           = _waveOutGetVolume@8         @172
    191     waveOutMessage             = _waveOutMessage@16          @173
    192     waveOutOpen                = _waveOutOpen@24             @174
    193     waveOutPause               = _waveOutPause@4             @175
    194     waveOutPrepareHeader       = _waveOutPrepareHeader@12    @176
    195     waveOutReset               = _waveOutReset@4             @177
    196     waveOutRestart             = _waveOutRestart@4           @178
    197     waveOutSetPitch            = _waveOutSetPitch@8          @179
    198     waveOutSetPlaybackRate     = _waveOutSetPlaybackRate@8  @180
    199     waveOutSetVolume           = _waveOutSetVolume@8         @181
    200     waveOutUnprepareHeader     = _waveOutUnprepareHeader@12  @182
    201     waveOutWrite               = _waveOutWrite@12            @183
     179    waveOutBreakLoop           = "_waveOutBreakLoop@4"       @161
     180    waveOutClose               = "_waveOutClose@4"           @162
     181    waveOutGetDevCapsA         = "_waveOutGetDevCapsA@12"    @163
     182    waveOutGetDevCapsW         = "_waveOutGetDevCapsW@12"    @164
     183    waveOutGetErrorTextA       = "_waveOutGetErrorTextA@12"  @165
     184    waveOutGetErrorTextW       = "_waveOutGetErrorTextW@12"  @166
     185    waveOutGetID               = "_waveOutGetID@8"           @167
     186    waveOutGetNumDevs          = "_waveOutGetNumDevs@0"      @168
     187    waveOutGetPitch            = "_waveOutGetPitch@8"        @169
     188    waveOutGetPlaybackRate     = "_waveOutGetPlaybackRate@8" @170
     189    waveOutGetPosition         = "_waveOutGetPosition@12"    @171
     190    waveOutGetVolume           = "_waveOutGetVolume@8"       @172
     191    waveOutMessage             = "_waveOutMessage@16"        @173
     192    waveOutOpen                = "_waveOutOpen@24"           @174
     193    waveOutPause               = "_waveOutPause@4"           @175
     194    waveOutPrepareHeader       = "_waveOutPrepareHeader@12"  @176
     195    waveOutReset               = "_waveOutReset@4"           @177
     196    waveOutRestart             = "_waveOutRestart@4"         @178
     197    waveOutSetPitch            = "_waveOutSetPitch@8"        @179
     198    waveOutSetPlaybackRate     = "_waveOutSetPlaybackRate@8" @180
     199    waveOutSetVolume           = "_waveOutSetVolume@8"       @181
     200    waveOutUnprepareHeader     = "_waveOutUnprepareHeader@12"  @182
     201    waveOutWrite               = "_waveOutWrite@12"          @183
    202202;    winmmf_ThunkData32         = _winmmf_ThunkData32@??      @184
    203203;    winmmsl_ThunkData32        = _winmmsl_ThunkData32@??     @185
    204204; ODIN-specific
    205     ODIN_IsFlashAudioEnabled   = _ODIN_IsFlashAudioEnabled@0 @186
    206     ODIN_EnableFlashAudio      = _ODIN_EnableFlashAudio@4    @187
    207 
     205    ODIN_IsFlashAudioEnabled   = "_ODIN_IsFlashAudioEnabled@0" @186
     206    ODIN_EnableFlashAudio      = "_ODIN_EnableFlashAudio@4"  @187
     207
  • branches/gcc-kmk/src/winmm/winmm.h

    r3303 r21841  
    99#define __WINMM_H__
    1010
    11 char * getWinmmMsg( MMRESULT result );
     11const char * getWinmmMsg( MMRESULT result );
    1212
    1313typedef struct {
  • branches/gcc-kmk/src/winmm/winmmdbg.def

    r21692 r21841  
    99
    1010; DRIVER
    11      PlaySoundA                 = _DbgPlaySoundA@12           @2
    12      CloseDriver                = _DbgCloseDriver@12          @5
    13      DefDriverProc              = _DbgDefDriverProc@20        @6
    14      DriverCallback             = _DbgDriverCallback@28       @7
    15      DrvClose                   = _DbgCloseDriver@12          @8
    16      DrvDefDriverProc           = _DbgDefDriverProc@20        @9
    17      DrvGetModuleHandle         = _DbgGetDriverModuleHandle@4 @10
    18      DrvOpen                    = _DbgOpenDriverA@12          @11
    19      DrvOpenA                   = _DbgOpenDriverA@12          @12
    20      DrvSendMessage             = _DbgSendDriverMessage@16    @13
    21      GetDriverFlags             = _DbgGetDriverFlags@4        @14
    22      GetDriverModuleHandle      = _DbgGetDriverModuleHandle@4 @15
    23      OpenDriver                 = _DbgOpenDriverA@12          @16
    24      OpenDriverA                = _DbgOpenDriverA@12          @17
    25      PlaySound                  = _DbgPlaySoundA@12           @18
    26      PlaySoundW                 = _DbgPlaySoundW@12           @19
    27      SendDriverMessage          = _DbgSendDriverMessage@16    @20
     11     PlaySoundA                 = "_DbgPlaySoundA@12"         @2
     12     CloseDriver                = "_DbgCloseDriver@12"        @5
     13     DefDriverProc              = "_DbgDefDriverProc@20"      @6
     14     DriverCallback             = "_DbgDriverCallback@28"     @7
     15     DrvClose                   = "_DbgCloseDriver@12"        @8
     16     DrvDefDriverProc           = "_DbgDefDriverProc@20"      @9
     17     DrvGetModuleHandle         = "_DbgGetDriverModuleHandle@4" @10
     18     DrvOpen                    = "_DbgOpenDriverA@12"        @11
     19     DrvOpenA                   = "_DbgOpenDriverA@12"        @12
     20     DrvSendMessage             = "_DbgSendDriverMessage@16"  @13
     21     GetDriverFlags             = "_DbgGetDriverFlags@4"      @14
     22     GetDriverModuleHandle      = "_DbgGetDriverModuleHandle@4" @15
     23     OpenDriver                 = "_DbgOpenDriverA@12"        @16
     24     OpenDriverA                = "_DbgOpenDriverA@12"        @17
     25     PlaySound                  = "_DbgPlaySoundA@12"         @18
     26     PlaySoundW                 = "_DbgPlaySoundW@12"         @19
     27     SendDriverMessage          = "_DbgSendDriverMessage@16"  @20
    2828
    2929; AUX
    30     auxGetDevCapsA             = _DbgauxGetDevCapsA@12          @21
    31     auxGetDevCapsW             = _DbgauxGetDevCapsW@12          @22
    32     auxGetNumDevs              = _DbgauxGetNumDevs@0            @23
    33     auxGetVolume               = _DbgauxGetVolume@8             @24
    34     auxOutMessage              = _DbgauxOutMessage@16           @25
    35     auxSetVolume               = _DbgauxSetVolume@8             @26
     30    auxGetDevCapsA             = "_DbgauxGetDevCapsA@12"        @21
     31    auxGetDevCapsW             = "_DbgauxGetDevCapsW@12"        @22
     32    auxGetNumDevs              = "_DbgauxGetNumDevs@0"          @23
     33    auxGetVolume               = "_DbgauxGetVolume@8"           @24
     34    auxOutMessage              = "_DbgauxOutMessage@16"         @25
     35    auxSetVolume               = "_DbgauxSetVolume@8"           @26
    3636; JOY
    37     joyConfigChanged           = _DbgjoyConfigChanged@4         @27
    38     joyGetDevCapsA             = _DbgjoyGetDevCapsA@12          @28
    39     joyGetDevCapsW             = _DbgjoyGetDevCapsW@12          @29
    40     joyGetNumDevs              = _DbgjoyGetNumDevs@0            @30
    41     joyGetPos                  = _DbgjoyGetPos@8                @31
    42     joyGetPosEx                = _DbgjoyGetPosEx@8              @32
    43     joyGetThreshold            = _DbgjoyGetThreshold@8          @33
    44     joyReleaseCapture          = _DbgjoyReleaseCapture@4        @34
    45     joySetCapture              = _DbgjoySetCapture@16           @35
    46     joySetThreshold            = _DbgjoySetThreshold@8          @36
     37    joyConfigChanged           = "_DbgjoyConfigChanged@4"       @27
     38    joyGetDevCapsA             = "_DbgjoyGetDevCapsA@12"        @28
     39    joyGetDevCapsW             = "_DbgjoyGetDevCapsW@12"        @29
     40    joyGetNumDevs              = "_DbgjoyGetNumDevs@0"          @30
     41    joyGetPos                  = "_DbgjoyGetPos@8"              @31
     42    joyGetPosEx                = "_DbgjoyGetPosEx@8"            @32
     43    joyGetThreshold            = "_DbgjoyGetThreshold@8"        @33
     44    joyReleaseCapture          = "_DbgjoyReleaseCapture@4"      @34
     45    joySetCapture              = "_DbgjoySetCapture@16"         @35
     46    joySetThreshold            = "_DbgjoySetThreshold@8"        @36
    4747; MCI
    48     mciDriverNotify            = _DbgmciDriverNotify@12         @37
    49     mciDriverYield             = _DbgmciDriverYield@4           @38
    50     mciExecute                 = _DbgmciExecute@4               @39
    51     mciFreeCommandResource     = _DbgmciFreeCommandResource@4  @40
    52     mciGetCreatorTask          = _DbgmciGetCreatorTask@4        @41
    53     mciGetDeviceIDA            = _DbgmciGetDeviceIDA@4          @42
    54     mciGetDeviceIDFromElementIDW  = _DbgmciGetDeviceIDFromElementIDW@8  @43
    55     mciGetDeviceIDW            = _DbgmciGetDeviceIDW@4          @44
    56     mciGetDriverData           = _DbgmciGetDriverData@4         @45
    57     mciGetErrorStringA         = _DbgmciGetErrorStringA@12      @46
    58     mciGetErrorStringW         = _DbgmciGetErrorStringW@12      @47
    59     mciGetYieldProc            = _DbgmciGetYieldProc@8          @48
    60     mciLoadCommandResource     = _DbgmciLoadCommandResource@12  @49
    61     mciSendCommandA            = _DbgmciSendCommandA@16         @50
    62     mciSendCommandW            = _DbgmciSendCommandW@16         @51
    63     mciSendStringA             = _DbgmciSendStringA@16          @52
    64     mciSendStringW             = _DbgmciSendStringW@16          @53
    65     mciSetDriverData           = _DbgmciSetDriverData@8         @54
    66     mciSetYieldProc            = _DbgmciSetYieldProc@12         @55
     48    mciDriverNotify            = "_DbgmciDriverNotify@12"       @37
     49    mciDriverYield             = "_DbgmciDriverYield@4"         @38
     50    mciExecute                 = "_DbgmciExecute@4"             @39
     51    mciFreeCommandResource     = "_DbgmciFreeCommandResource@4" @40
     52    mciGetCreatorTask          = "_DbgmciGetCreatorTask@4"      @41
     53    mciGetDeviceIDA            = "_DbgmciGetDeviceIDA@4"        @42
     54    mciGetDeviceIDFromElementIDW  = "_DbgmciGetDeviceIDFromElementIDW@8"  @43
     55    mciGetDeviceIDW            = "_DbgmciGetDeviceIDW@4"        @44
     56    mciGetDriverData           = "_DbgmciGetDriverData@4"       @45
     57    mciGetErrorStringA         = "_DbgmciGetErrorStringA@12"    @46
     58    mciGetErrorStringW         = "_DbgmciGetErrorStringW@12"    @47
     59    mciGetYieldProc            = "_DbgmciGetYieldProc@8"        @48
     60    mciLoadCommandResource     = "_DbgmciLoadCommandResource@12"  @49
     61    mciSendCommandA            = "_DbgmciSendCommandA@16"       @50
     62    mciSendCommandW            = "_DbgmciSendCommandW@16"       @51
     63    mciSendStringA             = "_DbgmciSendStringA@16"        @52
     64    mciSendStringW             = "_DbgmciSendStringW@16"        @53
     65    mciSetDriverData           = "_DbgmciSetDriverData@8"       @54
     66    mciSetYieldProc            = "_DbgmciSetYieldProc@12"       @55
    6767;
    6868; MIDI
    69     midiConnect                = _DbgmidiConnect@12             @56
    70     midiDisconnect             = _DbgmidiDisconnect@12          @57
    71     midiInAddBuffer            = _DbgmidiInAddBuffer@12         @58
    72     midiInClose                = _DbgmidiInClose@4              @59
    73     midiInGetDevCapsA          = _DbgmidiInGetDevCapsA@12       @60
    74     midiInGetDevCapsW          = _DbgmidiInGetDevCapsW@12       @61
    75     midiInGetErrorTextA        = _DbgmidiInGetErrorTextA@12     @62
    76     midiInGetErrorTextW        = _DbgmidiInGetErrorTextW@12     @63
    77     midiInGetID                = _DbgmidiInGetID@8              @64
    78     midiInGetNumDevs           = _DbgmidiInGetNumDevs@0         @65
    79     midiInMessage              = _DbgmidiInMessage@16           @66
    80     midiInOpen                 = _DbgmidiInOpen@20              @67
    81     midiInPrepareHeader        = _DbgmidiInPrepareHeader@12     @68
    82     midiInReset                = _DbgmidiInReset@4              @69
    83     midiInStart                = _DbgmidiInStart@4              @70
    84     midiInStop                 = _DbgmidiInStop@4               @71
    85     midiInUnprepareHeader      = _DbgmidiInUnprepareHeader@12  @72
    86     midiOutCacheDrumPatches    = _DbgmidiOutCacheDrumPatches@16 @73
    87     midiOutCachePatches        = _DbgmidiOutCachePatches@16     @74
    88     midiOutClose               = _DbgmidiOutClose@4             @75
    89     midiOutGetDevCapsA         = _DbgmidiOutGetDevCapsA@12      @76
    90     midiOutGetDevCapsW         = _DbgmidiOutGetDevCapsW@12      @77
    91     midiOutGetErrorTextA       = _DbgmidiOutGetErrorTextA@12    @78
    92     midiOutGetErrorTextW       = _DbgmidiOutGetErrorTextW@12    @79
    93     midiOutGetID               = _DbgmidiOutGetID@8             @80
    94     midiOutGetNumDevs          = _DbgmidiOutGetNumDevs@0        @81
    95     midiOutGetVolume           = _DbgmidiOutGetVolume@8         @82
    96     midiOutLongMsg             = _DbgmidiOutLongMsg@12          @83
    97     midiOutMessage             = _DbgmidiOutMessage@16          @84
    98     midiOutOpen                = _DbgmidiOutOpen@20             @85
    99     midiOutPrepareHeader       = _DbgmidiOutPrepareHeader@12    @86
    100     midiOutReset               = _DbgmidiOutReset@4             @87
    101     midiOutSetVolume           = _DbgmidiOutSetVolume@8         @88
    102     midiOutShortMsg            = _DbgmidiOutShortMsg@8          @89
    103     midiOutUnprepareHeader     = _DbgmidiOutUnprepareHeader@12  @90
    104     midiStreamClose            = _DbgmidiStreamClose@4          @91
    105     midiStreamOpen             = _DbgmidiStreamOpen@24          @92
    106     midiStreamOut              = _DbgmidiStreamOut@12           @93
    107     midiStreamPause            = _DbgmidiStreamPause@4          @94
    108     midiStreamPosition         = _DbgmidiStreamPosition@12      @95
    109     midiStreamProperty         = _DbgmidiStreamProperty@12      @96
    110     midiStreamRestart          = _DbgmidiStreamRestart@4        @97
    111     midiStreamStop             = _DbgmidiStreamStop@4           @98
     69    midiConnect                = "_DbgmidiConnect@12"           @56
     70    midiDisconnect             = "_DbgmidiDisconnect@12"        @57
     71    midiInAddBuffer            = "_DbgmidiInAddBuffer@12"       @58
     72    midiInClose                = "_DbgmidiInClose@4"            @59
     73    midiInGetDevCapsA          = "_DbgmidiInGetDevCapsA@12"     @60
     74    midiInGetDevCapsW          = "_DbgmidiInGetDevCapsW@12"     @61
     75    midiInGetErrorTextA        = "_DbgmidiInGetErrorTextA@12"   @62
     76    midiInGetErrorTextW        = "_DbgmidiInGetErrorTextW@12"   @63
     77    midiInGetID                = "_DbgmidiInGetID@8"            @64
     78    midiInGetNumDevs           = "_DbgmidiInGetNumDevs@0"       @65
     79    midiInMessage              = "_DbgmidiInMessage@16"         @66
     80    midiInOpen                 = "_DbgmidiInOpen@20"            @67
     81    midiInPrepareHeader        = "_DbgmidiInPrepareHeader@12"   @68
     82    midiInReset                = "_DbgmidiInReset@4"            @69
     83    midiInStart                = "_DbgmidiInStart@4"            @70
     84    midiInStop                 = "_DbgmidiInStop@4"             @71
     85    midiInUnprepareHeader      = "_DbgmidiInUnprepareHeader@12" @72
     86    midiOutCacheDrumPatches    = "_DbgmidiOutCacheDrumPatches@16" @73
     87    midiOutCachePatches        = "_DbgmidiOutCachePatches@16"   @74
     88    midiOutClose               = "_DbgmidiOutClose@4"           @75
     89    midiOutGetDevCapsA         = "_DbgmidiOutGetDevCapsA@12"    @76
     90    midiOutGetDevCapsW         = "_DbgmidiOutGetDevCapsW@12"    @77
     91    midiOutGetErrorTextA       = "_DbgmidiOutGetErrorTextA@12"  @78
     92    midiOutGetErrorTextW       = "_DbgmidiOutGetErrorTextW@12"  @79
     93    midiOutGetID               = "_DbgmidiOutGetID@8"           @80
     94    midiOutGetNumDevs          = "_DbgmidiOutGetNumDevs@0"      @81
     95    midiOutGetVolume           = "_DbgmidiOutGetVolume@8"       @82
     96    midiOutLongMsg             = "_DbgmidiOutLongMsg@12"        @83
     97    midiOutMessage             = "_DbgmidiOutMessage@16"        @84
     98    midiOutOpen                = "_DbgmidiOutOpen@20"           @85
     99    midiOutPrepareHeader       = "_DbgmidiOutPrepareHeader@12"  @86
     100    midiOutReset               = "_DbgmidiOutReset@4"           @87
     101    midiOutSetVolume           = "_DbgmidiOutSetVolume@8"       @88
     102    midiOutShortMsg            = "_DbgmidiOutShortMsg@8"        @89
     103    midiOutUnprepareHeader     = "_DbgmidiOutUnprepareHeader@12"  @90
     104    midiStreamClose            = "_DbgmidiStreamClose@4"        @91
     105    midiStreamOpen             = "_DbgmidiStreamOpen@24"        @92
     106    midiStreamOut              = "_DbgmidiStreamOut@12"         @93
     107    midiStreamPause            = "_DbgmidiStreamPause@4"        @94
     108    midiStreamPosition         = "_DbgmidiStreamPosition@12"    @95
     109    midiStreamProperty         = "_DbgmidiStreamProperty@12"    @96
     110    midiStreamRestart          = "_DbgmidiStreamRestart@4"      @97
     111    midiStreamStop             = "_DbgmidiStreamStop@4"         @98
    112112; MIXER
    113     mixerClose                 = _DbgmixerClose@4               @99
    114     mixerGetControlDetailsA    = _DbgmixerGetControlDetailsA@12 @100
    115     mixerGetControlDetailsW    = _DbgmixerGetControlDetailsW@12 @101
    116     mixerGetDevCapsA           = _DbgmixerGetDevCapsA@12        @102
    117     mixerGetDevCapsW           = _DbgmixerGetDevCapsW@12        @103
    118     mixerGetID                 = _DbgmixerGetID@12              @104
    119     mixerGetLineControlsA      = _DbgmixerGetLineControlsA@12  @105
    120     mixerGetLineControlsW      = _DbgmixerGetLineControlsW@12  @106
    121     mixerGetLineInfoA          = _DbgmixerGetLineInfoA@12       @107
    122     mixerGetLineInfoW          = _DbgmixerGetLineInfoW@12       @108
    123     mixerGetNumDevs            = _DbgmixerGetNumDevs@0          @109
    124     mixerMessage               = _DbgmixerMessage@16            @110
    125     mixerOpen                  = _DbgmixerOpen@20               @111
    126     mixerSetControlDetails     = _DbgmixerSetControlDetails@12  @112
     113    mixerClose                 = "_DbgmixerClose@4"             @99
     114    mixerGetControlDetailsA    = "_DbgmixerGetControlDetailsA@12" @100
     115    mixerGetControlDetailsW    = "_DbgmixerGetControlDetailsW@12" @101
     116    mixerGetDevCapsA           = "_DbgmixerGetDevCapsA@12"      @102
     117    mixerGetDevCapsW           = "_DbgmixerGetDevCapsW@12"      @103
     118    mixerGetID                 = "_DbgmixerGetID@12"            @104
     119    mixerGetLineControlsA      = "_DbgmixerGetLineControlsA@12" @105
     120    mixerGetLineControlsW      = "_DbgmixerGetLineControlsW@12" @106
     121    mixerGetLineInfoA          = "_DbgmixerGetLineInfoA@12"     @107
     122    mixerGetLineInfoW          = "_DbgmixerGetLineInfoW@12"     @108
     123    mixerGetNumDevs            = "_DbgmixerGetNumDevs@0"        @109
     124    mixerMessage               = "_DbgmixerMessage@16"          @110
     125    mixerOpen                  = "_DbgmixerOpen@20"             @111
     126    mixerSetControlDetails     = "_DbgmixerSetControlDetails@12"  @112
    127127; MMIO
    128     mmioAdvance                = _DbgmmioAdvance@12             @113
    129     mmioAscend                 = _DbgmmioAscend@12              @114
    130     mmioClose                  = _DbgmmioClose@8                @115
    131     mmioCreateChunk            = _DbgmmioCreateChunk@12         @116
    132     mmioDescend                = _DbgmmioDescend@16             @117
    133     mmioFlush                  = _DbgmmioFlush@8                @118
    134     mmioGetInfo                = _DbgmmioGetInfo@12             @119
     128    mmioAdvance                = "_DbgmmioAdvance@12"           @113
     129    mmioAscend                 = "_DbgmmioAscend@12"            @114
     130    mmioClose                  = "_DbgmmioClose@8"              @115
     131    mmioCreateChunk            = "_DbgmmioCreateChunk@12"       @116
     132    mmioDescend                = "_DbgmmioDescend@16"           @117
     133    mmioFlush                  = "_DbgmmioFlush@8"              @118
     134    mmioGetInfo                = "_DbgmmioGetInfo@12"           @119
    135135;    mmioInstallIOProc16        = _DbgmmioInstallIOProc16@??     @120
    136     mmioInstallIOProcA         = _DbgmmioInstallIOProcA@12      @121
    137     mmioInstallIOProcW         = _DbgmmioInstallIOProcW@12      @122
    138     mmioOpenA                  = _DbgmmioOpenA@12               @123
    139     mmioOpenW                  = _DbgmmioOpenW@12               @124
    140     mmioRead                   = _DbgmmioRead@12                @125
    141     mmioRenameA                = _DbgmmioRenameA@16             @126
    142     mmioRenameW                = _DbgmmioRenameW@16             @127
    143     mmioSeek                   = _DbgmmioSeek@12                @128
    144     mmioSendMessage            = _DbgmmioSendMessage@16         @129
    145     mmioSetBuffer              = _DbgmmioSetBuffer@16           @130
    146     mmioSetInfo                = _DbgmmioSetInfo@12             @131
    147     mmioStringToFOURCCA        = _DbgmmioStringToFOURCCA@8  @132
    148     mmioStringToFOURCCW        = _DbgmmioStringToFOURCCW@8  @133
    149     mmioWrite                  = _DbgmmioWrite@12               @134
    150 
    151     mmsystemGetVersion         = _DbgmmsystemGetVersion@0       @135
    152     sndPlaySoundA              = _DbgsndPlaySoundA@8            @136
    153     sndPlaySoundW              = _DbgsndPlaySoundW@8            @137
    154     timeBeginPeriod            = _DbgtimeBeginPeriod@4          @138
    155     timeEndPeriod              = _DbgtimeEndPeriod@4            @139
    156     timeGetDevCaps             = _DbgtimeGetDevCaps@8           @140
    157     timeGetSystemTime          = _DbgtimeGetSystemTime@8        @141
    158     timeGetTime                = _DbgtimeGetTime@0              @142
    159     timeKillEvent              = _DbgtimeKillEvent@4            @143
    160     timeSetEvent               = _DbgtimeSetEvent@20            @144
     136    mmioInstallIOProcA         = "_DbgmmioInstallIOProcA@12"    @121
     137    mmioInstallIOProcW         = "_DbgmmioInstallIOProcW@12"    @122
     138    mmioOpenA                  = "_DbgmmioOpenA@12"             @123
     139    mmioOpenW                  = "_DbgmmioOpenW@12"             @124
     140    mmioRead                   = "_DbgmmioRead@12"              @125
     141    mmioRenameA                = "_DbgmmioRenameA@16"           @126
     142    mmioRenameW                = "_DbgmmioRenameW@16"           @127
     143    mmioSeek                   = "_DbgmmioSeek@12"              @128
     144    mmioSendMessage            = "_DbgmmioSendMessage@16"       @129
     145    mmioSetBuffer              = "_DbgmmioSetBuffer@16"         @130
     146    mmioSetInfo                = "_DbgmmioSetInfo@12"           @131
     147    mmioStringToFOURCCA        = "_DbgmmioStringToFOURCCA@8" @132
     148    mmioStringToFOURCCW        = "_DbgmmioStringToFOURCCW@8" @133
     149    mmioWrite                  = "_DbgmmioWrite@12"             @134
     150
     151    mmsystemGetVersion         = "_DbgmmsystemGetVersion@0"     @135
     152    sndPlaySoundA              = "_DbgsndPlaySoundA@8"          @136
     153    sndPlaySoundW              = "_DbgsndPlaySoundW@8"          @137
     154    timeBeginPeriod            = "_DbgtimeBeginPeriod@4"        @138
     155    timeEndPeriod              = "_DbgtimeEndPeriod@4"          @139
     156    timeGetDevCaps             = "_DbgtimeGetDevCaps@8"         @140
     157    timeGetSystemTime          = "_DbgtimeGetSystemTime@8"      @141
     158    timeGetTime                = "_DbgtimeGetTime@0"            @142
     159    timeKillEvent              = "_DbgtimeKillEvent@4"          @143
     160    timeSetEvent               = "_DbgtimeSetEvent@20"          @144
    161161; WAVEIN
    162     waveInAddBuffer            = _DbgwaveInAddBuffer@12         @145
    163     waveInClose                = _DbgwaveInClose@4              @146
    164     waveInGetDevCapsA          = _DbgwaveInGetDevCapsA@12       @147
    165     waveInGetDevCapsW          = _DbgwaveInGetDevCapsW@12       @148
    166     waveInGetErrorTextA        = _DbgwaveInGetErrorTextA@12     @149
    167     waveInGetErrorTextW        = _DbgwaveInGetErrorTextW@12     @150
    168     waveInGetID                = _DbgwaveInGetID@8              @151
    169     waveInGetNumDevs           = _DbgwaveInGetNumDevs@0         @152
    170     waveInGetPosition          = _DbgwaveInGetPosition@12       @153
    171     waveInMessage              = _DbgwaveInMessage@16           @154
    172     waveInOpen                 = _DbgwaveInOpen@24              @155
    173     waveInPrepareHeader        = _DbgwaveInPrepareHeader@12     @156
    174     waveInReset                = _DbgwaveInReset@4              @157
    175     waveInStart                = _DbgwaveInStart@4              @158
    176     waveInStop                 = _DbgwaveInStop@4               @159
    177     waveInUnprepareHeader      = _DbgwaveInUnprepareHeader@12  @160
     162    waveInAddBuffer            = "_DbgwaveInAddBuffer@12"       @145
     163    waveInClose                = "_DbgwaveInClose@4"            @146
     164    waveInGetDevCapsA          = "_DbgwaveInGetDevCapsA@12"     @147
     165    waveInGetDevCapsW          = "_DbgwaveInGetDevCapsW@12"     @148
     166    waveInGetErrorTextA        = "_DbgwaveInGetErrorTextA@12"   @149
     167    waveInGetErrorTextW        = "_DbgwaveInGetErrorTextW@12"   @150
     168    waveInGetID                = "_DbgwaveInGetID@8"            @151
     169    waveInGetNumDevs           = "_DbgwaveInGetNumDevs@0"       @152
     170    waveInGetPosition          = "_DbgwaveInGetPosition@12"     @153
     171    waveInMessage              = "_DbgwaveInMessage@16"         @154
     172    waveInOpen                 = "_DbgwaveInOpen@24"            @155
     173    waveInPrepareHeader        = "_DbgwaveInPrepareHeader@12"   @156
     174    waveInReset                = "_DbgwaveInReset@4"            @157
     175    waveInStart                = "_DbgwaveInStart@4"            @158
     176    waveInStop                 = "_DbgwaveInStop@4"             @159
     177    waveInUnprepareHeader      = "_DbgwaveInUnprepareHeader@12" @160
    178178; WAVEOUT
    179     waveOutBreakLoop           = _DbgwaveOutBreakLoop@4         @161
    180     waveOutClose               = _DbgwaveOutClose@4             @162
    181     waveOutGetDevCapsA         = _DbgwaveOutGetDevCapsA@12      @163
    182     waveOutGetDevCapsW         = _DbgwaveOutGetDevCapsW@12      @164
    183     waveOutGetErrorTextA       = _DbgwaveOutGetErrorTextA@12    @165
    184     waveOutGetErrorTextW       = _DbgwaveOutGetErrorTextW@12    @166
    185     waveOutGetID               = _DbgwaveOutGetID@8             @167
    186     waveOutGetNumDevs          = _DbgwaveOutGetNumDevs@0        @168
    187     waveOutGetPitch            = _DbgwaveOutGetPitch@8          @169
    188     waveOutGetPlaybackRate     = _DbgwaveOutGetPlaybackRate@8  @170
    189     waveOutGetPosition         = _DbgwaveOutGetPosition@12      @171
    190     waveOutGetVolume           = _DbgwaveOutGetVolume@8         @172
    191     waveOutMessage             = _DbgwaveOutMessage@16          @173
    192     waveOutOpen                = _DbgwaveOutOpen@24             @174
    193     waveOutPause               = _DbgwaveOutPause@4             @175
    194     waveOutPrepareHeader       = _DbgwaveOutPrepareHeader@12    @176
    195     waveOutReset               = _DbgwaveOutReset@4             @177
    196     waveOutRestart             = _DbgwaveOutRestart@4           @178
    197     waveOutSetPitch            = _DbgwaveOutSetPitch@8          @179
    198     waveOutSetPlaybackRate     = _DbgwaveOutSetPlaybackRate@8  @180
    199     waveOutSetVolume           = _DbgwaveOutSetVolume@8         @181
    200     waveOutUnprepareHeader     = _DbgwaveOutUnprepareHeader@12  @182
    201     waveOutWrite               = _DbgwaveOutWrite@12            @183
     179    waveOutBreakLoop           = "_DbgwaveOutBreakLoop@4"       @161
     180    waveOutClose               = "_DbgwaveOutClose@4"           @162
     181    waveOutGetDevCapsA         = "_DbgwaveOutGetDevCapsA@12"    @163
     182    waveOutGetDevCapsW         = "_DbgwaveOutGetDevCapsW@12"    @164
     183    waveOutGetErrorTextA       = "_DbgwaveOutGetErrorTextA@12"  @165
     184    waveOutGetErrorTextW       = "_DbgwaveOutGetErrorTextW@12"  @166
     185    waveOutGetID               = "_DbgwaveOutGetID@8"           @167
     186    waveOutGetNumDevs          = "_DbgwaveOutGetNumDevs@0"      @168
     187    waveOutGetPitch            = "_DbgwaveOutGetPitch@8"        @169
     188    waveOutGetPlaybackRate     = "_DbgwaveOutGetPlaybackRate@8" @170
     189    waveOutGetPosition         = "_DbgwaveOutGetPosition@12"    @171
     190    waveOutGetVolume           = "_DbgwaveOutGetVolume@8"       @172
     191    waveOutMessage             = "_DbgwaveOutMessage@16"        @173
     192    waveOutOpen                = "_DbgwaveOutOpen@24"           @174
     193    waveOutPause               = "_DbgwaveOutPause@4"           @175
     194    waveOutPrepareHeader       = "_DbgwaveOutPrepareHeader@12"  @176
     195    waveOutReset               = "_DbgwaveOutReset@4"           @177
     196    waveOutRestart             = "_DbgwaveOutRestart@4"         @178
     197    waveOutSetPitch            = "_DbgwaveOutSetPitch@8"        @179
     198    waveOutSetPlaybackRate     = "_DbgwaveOutSetPlaybackRate@8" @180
     199    waveOutSetVolume           = "_DbgwaveOutSetVolume@8"       @181
     200    waveOutUnprepareHeader     = "_DbgwaveOutUnprepareHeader@12"  @182
     201    waveOutWrite               = "_DbgwaveOutWrite@12"          @183
    202202;    winmmf_ThunkData32         = _Dbgwinmmf_ThunkData32@??      @184
    203203;    winmmsl_ThunkData32        = _Dbgwinmmsl_ThunkData32@??     @185
    204204; ODIN-specific
    205     ODIN_IsFlashAudioEnabled   = _DbgODIN_IsFlashAudioEnabled@0 @186
    206     ODIN_EnableFlashAudio      = _DbgODIN_EnableFlashAudio@4    @187
    207 
     205    ODIN_IsFlashAudioEnabled   = "_DbgODIN_IsFlashAudioEnabled@0" @186
     206    ODIN_EnableFlashAudio      = "_DbgODIN_EnableFlashAudio@4"  @187
     207
Note: See TracChangeset for help on using the changeset viewer.