Annotation of src/sosez.h, revision 1.1.1.1

1.1       root        1: /****************************************************************************
                      2: *
                      3: *  File              : sosez.h
                      4: *  Date Created      : 2/27/95
                      5: *  Description       : 
                      6: *
                      7: *  Programmer(s)     : Nick Skrepetos
                      8: *  Last Modification : 2/27/95 - 9:0:32 PM
                      9: *  Additional Notes  :
                     10: *
                     11: *****************************************************************************
                     12: *            Copyright (c) 1994-5,  HMI, Inc.  All Rights Reserved          *
                     13: ****************************************************************************/
                     14: 
                     15: #ifndef  _SOSEZ_DEFINED
                     16: #define  _SOSEZ_DEFINED
                     17: 
                     18: // indicate not to use driver
                     19: #define  _SOSEZ_NO_DRIVER     -1
                     20: 
                     21: // rate to register the digital mixer
                     22: #define  _SOSEZ_TIMER_RATE    60
                     23: 
                     24: // size of the system DMA buffer
                     25: #define  _SOSEZ_DMA_BUFFER    0x1000
                     26: 
                     27: // sample rate to run the driver
                     28: #define  _SOSEZ_SAMPLE_RATE   11025
                     29: 
                     30: // sosEZ error codes
                     31: enum
                     32:    {
                     33:       _SOSEZ_NO_ERROR,
                     34:       _SOSEZ_DIGI_INIT,
                     35:       _SOSEZ_MIDI_INIT,
                     36:       _SOSEZ_PATCH_MELODIC,
                     37:       _SOSEZ_PATCH_DRUM,
                     38:       _SOSEZ_PATCH_INIT
                     39: 
                     40:    };
                     41: 
                     42: #endif
                     43: 
                     44: // function prototypes for sosEZ
                     45: W32  cdecl sosEZInitSystem               ( W32 wDDeviceID, W32 wMDeviceID );
                     46: W32  cdecl sosEZUnInitSystem             ( VOID );
                     47: BOOL  cdecl sosEZGetConfig                ( PSTR szName );
                     48: _SOS_SAMPLE * cdecl sosEZLoadSample ( PSTR szName );
                     49: PSTR  cdecl sosEZLoadPatch                ( PSTR szName );
                     50: W32  cdecl sosEZLoadSong                 ( PSTR szName );
                     51: 
                     52: 
                     53: // pack the structure on a byte alignment
                     54: #pragma pack( 1 )
                     55: 
                     56: // .WAV file header structure
                     57: typedef struct _tag_wavheader  
                     58: {
                     59:    BYTE szRIFF[ 4 ];
                     60:    DWORD dwFormatLength;
                     61:    BYTE szWAVE[ 4 ];
                     62:    BYTE szFMT[ 4 ];
                     63:    DWORD dwWaveFormatLength;
                     64:    short wFormatTag;
                     65:    short wChannels;
                     66:    DWORD dwSamplesPerSec;
                     67:    DWORD dwAvgBytesPerSec;
                     68:    short wBlockAlign;
                     69:    short wBitsPerSample;
                     70:    BYTE szDATA[ 4 ];
                     71:    DWORD dwDataLength;
                     72: 
                     73: } _WAVHEADER;
                     74: 
                     75: #pragma pack()
                     76: 

unix.superglobalmegacorp.com