3 Device type IDs and macros
6 Andrew Greenwood (silverblade@reactos.org)
9 14 Feb 2009 - Split from ntddsnd.h
11 These are enhancements to the original NT4 DDK audio device header
21 Based on the values stored into the registry by the NT4 sndblst
27 // The sound device types
28 WAVE_IN_DEVICE_TYPE
= 1,
29 WAVE_OUT_DEVICE_TYPE
= 2,
30 MIDI_IN_DEVICE_TYPE
= 3,
31 MIDI_OUT_DEVICE_TYPE
= 4,
33 MIXER_DEVICE_TYPE
= 6,
35 // Range of valid device type IDs
36 MIN_SOUND_DEVICE_TYPE
= 1,
37 MAX_SOUND_DEVICE_TYPE
= 6,
39 // Number of sound device types
40 SOUND_DEVICE_TYPES
= 6
43 #define IS_VALID_SOUND_DEVICE_TYPE(x) \
44 ( ( x >= MIN_SOUND_DEVICE_TYPE ) && ( x <= MAX_SOUND_DEVICE_TYPE ) )
46 #define IS_WAVE_DEVICE_TYPE(x) \
47 ( ( x == WAVE_IN_DEVICE_TYPE ) || ( x == WAVE_OUT_DEVICE_TYPE ) )
49 #define IS_MIDI_DEVICE_TYPE(x) \
50 ( ( x == MIDI_IN_DEVICE_TYPE ) || ( x == MIDI_OUT_DEVICE_TYPE ) )
52 #define IS_AUX_DEVICE_TYPE(x) \
53 ( x == AUX_DEVICE_TYPE )
55 #define IS_MIXER_DEVICE_TYPE(x) \
56 ( x == MIXER_DEVICE_TYPE )