ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

sndtypes.h
Go to the documentation of this file.
00001 /*
00002     ReactOS Sound System
00003     Device type IDs and macros
00004 
00005     Author:
00006         Andrew Greenwood (silverblade@reactos.org)
00007 
00008     History:
00009         14 Feb 2009 - Split from ntddsnd.h
00010 
00011     These are enhancements to the original NT4 DDK audio device header
00012     files.
00013 */
00014 
00015 #ifndef SNDTYPES_H
00016 #define SNDTYPES_H
00017 
00018 /*
00019     Device types
00020 
00021     Based on the values stored into the registry by the NT4 sndblst
00022     driver.
00023 */
00024 
00025 typedef enum
00026 {
00027     // The sound device types
00028     WAVE_IN_DEVICE_TYPE     = 1,
00029     WAVE_OUT_DEVICE_TYPE    = 2,
00030     MIDI_IN_DEVICE_TYPE     = 3,
00031     MIDI_OUT_DEVICE_TYPE    = 4,
00032     AUX_DEVICE_TYPE         = 5,
00033     MIXER_DEVICE_TYPE       = 6,
00034 
00035     // Range of valid device type IDs
00036     MIN_SOUND_DEVICE_TYPE   = 1,
00037     MAX_SOUND_DEVICE_TYPE   = 6,
00038 
00039     // Number of sound device types
00040     SOUND_DEVICE_TYPES      = 6
00041 } SOUND_DEVICE_TYPE;
00042 
00043 #define IS_VALID_SOUND_DEVICE_TYPE(x) \
00044     ( ( x >= MIN_SOUND_DEVICE_TYPE ) && ( x <= MAX_SOUND_DEVICE_TYPE ) )
00045 
00046 #define IS_WAVE_DEVICE_TYPE(x) \
00047     ( ( x == WAVE_IN_DEVICE_TYPE ) || ( x == WAVE_OUT_DEVICE_TYPE ) )
00048 
00049 #define IS_MIDI_DEVICE_TYPE(x) \
00050     ( ( x == MIDI_IN_DEVICE_TYPE ) || ( x == MIDI_OUT_DEVICE_TYPE ) )
00051 
00052 #define IS_AUX_DEVICE_TYPE(x) \
00053     ( x == AUX_DEVICE_TYPE )
00054 
00055 #define IS_MIXER_DEVICE_TYPE(x) \
00056     ( x == MIXER_DEVICE_TYPE )
00057 
00058 
00059 #endif

Generated on Sat May 26 2012 04:32:05 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.