doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros
ultrasound.h File Reference

Go to the source code of this file.

Macros

#define COPYING2   Copyright (C) Hannu Savolainen and Dev Mazumdar 1997. All rights reserved.
 
#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:
{_SEQ_NEEDBUF(8); _seqbuf[_seqbufptr] = SEQ_PRIVATE;\
_seqbuf[_seqbufptr+1] = (chn); _seqbuf[_seqbufptr+2] = cmd;\
_seqbuf[_seqbufptr+3] = voice;\
*(unsigned short*)&_seqbuf[_seqbufptr+4] = p1;\
*(unsigned short*)&_seqbuf[_seqbufptr+6] = p2;\
#define _SEQ_ADVBUF(len)
Definition: soundcard.h:1498
#define _SEQ_NEEDBUF(len)
Definition: soundcard.h:1496
#define SEQ_PRIVATE
Definition: soundcard.h:505

Definition at line 68 of file ultrasound.h.

#define _GUS_NUMVOICES   0x00

Definition at line 46 of file ultrasound.h.

#define _GUS_RAMPMODE   0x0a

Definition at line 56 of file ultrasound.h.

#define _GUS_RAMPOFF   0x0c

Definition at line 58 of file ultrasound.h.

#define _GUS_RAMPON   0x0b

Definition at line 57 of file ultrasound.h.

#define _GUS_RAMPRANGE   0x08

Definition at line 54 of file ultrasound.h.

#define _GUS_RAMPRATE   0x09

Definition at line 55 of file ultrasound.h.

#define _GUS_VOICE_POS   0x10

Definition at line 62 of file ultrasound.h.

#define _GUS_VOICEBALA   0x05

Definition at line 51 of file ultrasound.h.

#define _GUS_VOICEFADE   0x0d

Definition at line 59 of file ultrasound.h.

#define _GUS_VOICEFREQ   0x06

Definition at line 52 of file ultrasound.h.

#define _GUS_VOICEMODE   0x04

Definition at line 50 of file ultrasound.h.

#define _GUS_VOICEOFF   0x03

Definition at line 49 of file ultrasound.h.

#define _GUS_VOICEON   0x02

Definition at line 48 of file ultrasound.h.

#define _GUS_VOICESAMPLE   0x01 /* OBSOLETE */

Definition at line 47 of file ultrasound.h.

#define _GUS_VOICEVOL   0x07

Definition at line 53 of file ultrasound.h.

#define _GUS_VOICEVOL2   0x0f

Definition at line 61 of file ultrasound.h.

#define _GUS_VOLUME_SCALE   0x0e

Definition at line 60 of file ultrasound.h.

#define COPYING2   Copyright (C) Hannu Savolainen and Dev Mazumdar 1997. All rights reserved.

Definition at line 8 of file ultrasound.h.

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

Definition at line 76 of file ultrasound.h.

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

Definition at line 89 of file ultrasound.h.

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

Definition at line 91 of file ultrasound.h.

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

Definition at line 90 of file ultrasound.h.

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

Definition at line 87 of file ultrasound.h.

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

Definition at line 88 of file ultrasound.h.

#define GUS_VOICE_POS (   chn,
  voice,
  p 
)
Value:
_GUS_CMD(chn, voice, _GUS_VOICE_POS, \
(p) & 0xffff, ((p) >> 16) & 0xffff)
#define _GUS_VOICE_POS
Definition: ultrasound.h:62
#define _GUS_CMD(chn, voice, cmd, p1, p2)
Definition: ultrasound.h:68
GLfloat GLfloat p
Definition: glext.h:4674

Definition at line 93 of file ultrasound.h.

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

Definition at line 82 of file ultrasound.h.

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

Definition at line 80 of file ultrasound.h.

#define GUS_VOICEFREQ (   chn,
  voice,
  p 
)
Value:
_GUS_CMD(chn, voice, _GUS_VOICEFREQ, \
(p) & 0xffff, ((p) >> 16) & 0xffff)
#define _GUS_VOICEFREQ
Definition: ultrasound.h:52
#define _GUS_CMD(chn, voice, cmd, p1, p2)
Definition: ultrasound.h:68
GLfloat GLfloat p
Definition: glext.h:4674

Definition at line 83 of file ultrasound.h.

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

Definition at line 81 of file ultrasound.h.

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

Definition at line 79 of file ultrasound.h.

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

Definition at line 78 of file ultrasound.h.

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

Definition at line 77 of file ultrasound.h.

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

Definition at line 85 of file ultrasound.h.

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

Definition at line 86 of file ultrasound.h.

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

Definition at line 92 of file ultrasound.h.