Ignore:
Timestamp:
Apr 30, 2001, 11:09:54 PM (24 years ago)
Author:
sandervl
Message:

header updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sbliveos2/trunk/include/daudio.h

    r171 r179  
    22#ifndef __DAUDIO_H__
    33#define __DAUDIO_H__
     4
     5#ifndef FAR
     6#define FAR
     7#endif
    48
    59#define DAUDIO_IOCTL_CAT                0x91
     
    1822#define DAUDIO_REGISTER_THREAD          0x4B
    1923#define DAUDIO_DEREGISTER_THREAD        0x4C
     24#define DAUDIO_QUERYCAPS                0x4D
     25#define DAUDIO_QUERYVERSION             0x4E
     26#define DAUDIO_SETPROPERTY              0x4F
     27
     28#define DAUDIO_VERSION                  0x00000002  //highword = major, lowword = minor version
    2029
    2130typedef struct {
     
    3544      {
    3645      ULONG   ulCurrentPos;
     46      ULONG   ulWritePos;
    3747      } Pos;
    3848    struct
     
    4050      ULONG   hSemaphore;
    4151      } Thread;
     52    struct
     53      {
     54      ULONG   ulVersion;
     55      } Version;
     56    struct
     57      {
     58      ULONG   type;
     59      ULONG   value;
     60      } SetProperty;
    4261    };
    4362 
    4463} DAUDIO_CMD, FAR *LPDAUDIO_CMD;
    4564
     65#define DAUDIOCAPS_PRIMARYMONO          0x00000001
     66#define DAUDIOCAPS_PRIMARYSTEREO        0x00000002
     67#define DAUDIOCAPS_PRIMARY8BIT          0x00000004
     68#define DAUDIOCAPS_PRIMARY16BIT         0x00000008
     69#define DAUDIOCAPS_CONTINUOUSRATE       0x00000010
     70#define DAUDIOCAPS_EMULDRIVER           0x00000020
     71#define DAUDIOCAPS_CERTIFIED            0x00000040
     72#define DAUDIOCAPS_SECONDARYMONO        0x00000100
     73#define DAUDIOCAPS_SECONDARYSTEREO      0x00000200
     74#define DAUDIOCAPS_SECONDARY8BIT        0x00000400
     75#define DAUDIOCAPS_SECONDARY16BIT       0x00000800
     76
     77typedef struct _DAUDIOCAPS
     78{
     79    ULONG       dwSize;
     80    ULONG       dwFlags;
     81    ULONG       dwMinSecondarySampleRate;
     82    ULONG       dwMaxSecondarySampleRate;
     83    ULONG       dwPrimaryBuffers;
     84    ULONG       dwMaxHwMixingAllBuffers;
     85    ULONG       dwMaxHwMixingStaticBuffers;
     86    ULONG       dwMaxHwMixingStreamingBuffers;
     87    ULONG       dwFreeHwMixingAllBuffers;
     88    ULONG       dwFreeHwMixingStaticBuffers;
     89    ULONG       dwFreeHwMixingStreamingBuffers;
     90    ULONG       dwMaxHw3DAllBuffers;
     91    ULONG       dwMaxHw3DStaticBuffers;
     92    ULONG       dwMaxHw3DStreamingBuffers;
     93    ULONG       dwFreeHw3DAllBuffers;
     94    ULONG       dwFreeHw3DStaticBuffers;
     95    ULONG       dwFreeHw3DStreamingBuffers;
     96    ULONG       dwTotalHwMemBytes;
     97    ULONG       dwFreeHwMemBytes;
     98    ULONG       dwMaxContigFreeHwMemBytes;
     99    ULONG       dwUnlockTransferRateHwBuffers;
     100    ULONG       dwPlayCpuOverheadSwBuffers;
     101    ULONG       dwReserved1;
     102    ULONG       dwReserved2;
     103} DAUDIO_CAPS, FAR *LPDAUDIO_CAPS;
     104
     105#define SBLIVECAPS_MINSAMPLERATE        5000
     106#define SBLIVECAPS_MAXSAMPLERATE        48000
     107#define SBLIVECAPS_MAXSTREAMS           32
     108
     109
     110// property types
     111#define PROPERTY_LOOPING        0
     112#define PROPERTY_FREQUENCY      1
     113#define PROPERTY_VOLUME         2
     114#define PROPERTY_BALANCE        3
     115#define PROPERTY_MASTERVOL      4
     116#define PROPERTY_INPUTSRC       5
     117#define PROPERTY_INPUTGAIN      6
     118
    46119#endif //__DAUDIO_H__
Note: See TracChangeset for help on using the changeset viewer.