Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
ultrasound.h File Reference

Go to the source code of this file.

Macros

#define _GUS_NUMVOICES   0x00
 
#define _GUS_VOICESAMPLE   0x01 /* OBSOLETE */
 
#define _GUS_VOICEON   0x02
 
#define _GUS_VOICEOFF   0x03
 
#define _GUS_VOICEMODE   0x04
 
#define _GUS_VOICEBALA   0x05
 
#define _GUS_VOICEFREQ   0x06
 
#define _GUS_VOICEVOL   0x07
 
#define _GUS_RAMPRANGE   0x08
 
#define _GUS_RAMPRATE   0x09
 
#define _GUS_RAMPMODE   0x0a
 
#define _GUS_RAMPON   0x0b
 
#define _GUS_RAMPOFF   0x0c
 
#define _GUS_VOICEFADE   0x0d
 
#define _GUS_VOLUME_SCALE   0x0e
 
#define _GUS_VOICEVOL2   0x0f
 
#define _GUS_VOICE_POS   0x10
 
#define _GUS_CMD(chn, voice, cmd, p1, p2)
 
#define GUS_NUMVOICES(chn, p1)   _GUS_CMD(chn, 0, _GUS_NUMVOICES, (p1), 0)
 
#define GUS_VOICESAMPLE(chn, voice, p1)   _GUS_CMD(chn, voice, _GUS_VOICESAMPLE, (p1), 0) /* OBSOLETE */
 
#define GUS_VOICEON(chn, voice, p1)   _GUS_CMD(chn, voice, _GUS_VOICEON, (p1), 0)
 
#define GUS_VOICEOFF(chn, voice)   _GUS_CMD(chn, voice, _GUS_VOICEOFF, 0, 0)
 
#define GUS_VOICEFADE(chn, voice)   _GUS_CMD(chn, voice, _GUS_VOICEFADE, 0, 0)
 
#define GUS_VOICEMODE(chn, voice, p1)   _GUS_CMD(chn, voice, _GUS_VOICEMODE, (p1), 0)
 
#define GUS_VOICEBALA(chn, voice, p1)   _GUS_CMD(chn, voice, _GUS_VOICEBALA, (p1), 0)
 
#define GUS_VOICEFREQ(chn, voice, p)
 
#define GUS_VOICEVOL(chn, voice, p1)   _GUS_CMD(chn, voice, _GUS_VOICEVOL, (p1), 0)
 
#define GUS_VOICEVOL2(chn, voice, p1)   _GUS_CMD(chn, voice, _GUS_VOICEVOL2, (p1), 0)
 
#define GUS_RAMPRANGE(chn, voice, low, high)   _GUS_CMD(chn, voice, _GUS_RAMPRANGE, (low), (high))
 
#define GUS_RAMPRATE(chn, voice, p1, p2)   _GUS_CMD(chn, voice, _GUS_RAMPRATE, (p1), (p2))
 
#define GUS_RAMPMODE(chn, voice, p1)   _GUS_CMD(chn, voice, _GUS_RAMPMODE, (p1), 0)
 
#define GUS_RAMPON(chn, voice, p1)   _GUS_CMD(chn, voice, _GUS_RAMPON, (p1), 0)
 
#define GUS_RAMPOFF(chn, voice)   _GUS_CMD(chn, voice, _GUS_RAMPOFF, 0, 0)
 
#define GUS_VOLUME_SCALE(chn, voice, p1, p2)   _GUS_CMD(chn, voice, _GUS_VOLUME_SCALE, (p1), (p2))
 
#define GUS_VOICE_POS(chn, voice, p)
 

Macro Definition Documentation

#define _GUS_CMD (   chn,
  voice,
  cmd,
  p1,
  p2 
)
Value:
_seqbuf[_seqbufptr+1] = (chn); _seqbuf[_seqbufptr+2] = cmd;\
_seqbuf[_seqbufptr+3] = voice;\
*(unsigned short*)&_seqbuf[_seqbufptr+4] = p1;\
*(unsigned short*)&_seqbuf[_seqbufptr+6] = p2;\
_SEQ_ADVBUF(8);}

Definition at line 75 of file ultrasound.h.

#define _GUS_NUMVOICES   0x00

Definition at line 53 of file ultrasound.h.

#define _GUS_RAMPMODE   0x0a

Definition at line 63 of file ultrasound.h.

#define _GUS_RAMPOFF   0x0c

Definition at line 65 of file ultrasound.h.

#define _GUS_RAMPON   0x0b

Definition at line 64 of file ultrasound.h.

#define _GUS_RAMPRANGE   0x08

Definition at line 61 of file ultrasound.h.

#define _GUS_RAMPRATE   0x09

Definition at line 62 of file ultrasound.h.

#define _GUS_VOICE_POS   0x10

Definition at line 69 of file ultrasound.h.

#define _GUS_VOICEBALA   0x05

Definition at line 58 of file ultrasound.h.

#define _GUS_VOICEFADE   0x0d

Definition at line 66 of file ultrasound.h.

#define _GUS_VOICEFREQ   0x06

Definition at line 59 of file ultrasound.h.

#define _GUS_VOICEMODE   0x04

Definition at line 57 of file ultrasound.h.

#define _GUS_VOICEOFF   0x03

Definition at line 56 of file ultrasound.h.

#define _GUS_VOICEON   0x02

Definition at line 55 of file ultrasound.h.

#define _GUS_VOICESAMPLE   0x01 /* OBSOLETE */

Definition at line 54 of file ultrasound.h.

#define _GUS_VOICEVOL   0x07

Definition at line 60 of file ultrasound.h.

#define _GUS_VOICEVOL2   0x0f

Definition at line 68 of file ultrasound.h.

#define _GUS_VOLUME_SCALE   0x0e

Definition at line 67 of file ultrasound.h.

#define GUS_NUMVOICES (   chn,
  p1 
)    _GUS_CMD(chn, 0, _GUS_NUMVOICES, (p1), 0)

Definition at line 83 of file ultrasound.h.

#define GUS_RAMPMODE (   chn,
  voice,
  p1 
)    _GUS_CMD(chn, voice, _GUS_RAMPMODE, (p1), 0)

Definition at line 96 of file ultrasound.h.

#define GUS_RAMPOFF (   chn,
  voice 
)    _GUS_CMD(chn, voice, _GUS_RAMPOFF, 0, 0)

Definition at line 98 of file ultrasound.h.

#define GUS_RAMPON (   chn,
  voice,
  p1 
)    _GUS_CMD(chn, voice, _GUS_RAMPON, (p1), 0)

Definition at line 97 of file ultrasound.h.

#define GUS_RAMPRANGE (   chn,
  voice,
  low,
  high 
)    _GUS_CMD(chn, voice, _GUS_RAMPRANGE, (low), (high))

Definition at line 94 of file ultrasound.h.

#define GUS_RAMPRATE (   chn,
  voice,
  p1,
  p2 
)    _GUS_CMD(chn, voice, _GUS_RAMPRATE, (p1), (p2))

Definition at line 95 of file ultrasound.h.

#define GUS_VOICE_POS (   chn,
  voice,
  p 
)
Value:
(p) & 0xffff, ((p) >> 16) & 0xffff)

Definition at line 100 of file ultrasound.h.

#define GUS_VOICEBALA (   chn,
  voice,
  p1 
)    _GUS_CMD(chn, voice, _GUS_VOICEBALA, (p1), 0)

Definition at line 89 of file ultrasound.h.

#define GUS_VOICEFADE (   chn,
  voice 
)    _GUS_CMD(chn, voice, _GUS_VOICEFADE, 0, 0)

Definition at line 87 of file ultrasound.h.

#define GUS_VOICEFREQ (   chn,
  voice,
  p 
)
Value:
(p) & 0xffff, ((p) >> 16) & 0xffff)

Definition at line 90 of file ultrasound.h.

#define GUS_VOICEMODE (   chn,
  voice,
  p1 
)    _GUS_CMD(chn, voice, _GUS_VOICEMODE, (p1), 0)

Definition at line 88 of file ultrasound.h.

#define GUS_VOICEOFF (   chn,
  voice 
)    _GUS_CMD(chn, voice, _GUS_VOICEOFF, 0, 0)

Definition at line 86 of file ultrasound.h.

#define GUS_VOICEON (   chn,
  voice,
  p1 
)    _GUS_CMD(chn, voice, _GUS_VOICEON, (p1), 0)

Definition at line 85 of file ultrasound.h.

#define GUS_VOICESAMPLE (   chn,
  voice,
  p1 
)    _GUS_CMD(chn, voice, _GUS_VOICESAMPLE, (p1), 0) /* OBSOLETE */

Definition at line 84 of file ultrasound.h.

#define GUS_VOICEVOL (   chn,
  voice,
  p1 
)    _GUS_CMD(chn, voice, _GUS_VOICEVOL, (p1), 0)

Definition at line 92 of file ultrasound.h.

#define GUS_VOICEVOL2 (   chn,
  voice,
  p1 
)    _GUS_CMD(chn, voice, _GUS_VOICEVOL2, (p1), 0)

Definition at line 93 of file ultrasound.h.

#define GUS_VOLUME_SCALE (   chn,
  voice,
  p1,
  p2 
)    _GUS_CMD(chn, voice, _GUS_VOLUME_SCALE, (p1), (p2))

Definition at line 99 of file ultrasound.h.