Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/linux
File: ultrasound.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
#ifndef _ULTRASOUND_H_
[1] Fix | Delete
#define _ULTRASOUND_H_
[2] Fix | Delete
/*
[3] Fix | Delete
* ultrasound.h - Macros for programming the Gravis Ultrasound
[4] Fix | Delete
* These macros are extremely device dependent
[5] Fix | Delete
* and not portable.
[6] Fix | Delete
*/
[7] Fix | Delete
/*
[8] Fix | Delete
* Copyright (C) by Hannu Savolainen 1993-1997
[9] Fix | Delete
*
[10] Fix | Delete
* OSS/Free for Linux is distributed under the GNU GENERAL PUBLIC LICENSE (GPL)
[11] Fix | Delete
* Version 2 (June 1991). See the "COPYING" file distributed with this software
[12] Fix | Delete
* for more info.
[13] Fix | Delete
*/
[14] Fix | Delete
[15] Fix | Delete
[16] Fix | Delete
/*
[17] Fix | Delete
* Private events for Gravis Ultrasound (GUS)
[18] Fix | Delete
*
[19] Fix | Delete
* Format:
[20] Fix | Delete
* byte 0 - SEQ_PRIVATE (0xfe)
[21] Fix | Delete
* byte 1 - Synthesizer device number (0-N)
[22] Fix | Delete
* byte 2 - Command (see below)
[23] Fix | Delete
* byte 3 - Voice number (0-31)
[24] Fix | Delete
* bytes 4 and 5 - parameter P1 (unsigned short)
[25] Fix | Delete
* bytes 6 and 7 - parameter P2 (unsigned short)
[26] Fix | Delete
*
[27] Fix | Delete
* Commands:
[28] Fix | Delete
* Each command affects one voice defined in byte 3.
[29] Fix | Delete
* Unused parameters (P1 and/or P2 *MUST* be initialized to zero).
[30] Fix | Delete
* _GUS_NUMVOICES - Sets max. number of concurrent voices (P1=14-31, default 16)
[31] Fix | Delete
* _GUS_VOICESAMPLE- ************ OBSOLETE *************
[32] Fix | Delete
* _GUS_VOICEON - Starts voice (P1=voice mode)
[33] Fix | Delete
* _GUS_VOICEOFF - Stops voice (no parameters)
[34] Fix | Delete
* _GUS_VOICEFADE - Stops the voice smoothly.
[35] Fix | Delete
* _GUS_VOICEMODE - Alters the voice mode, don't start or stop voice (P1=voice mode)
[36] Fix | Delete
* _GUS_VOICEBALA - Sets voice balance (P1, 0=left, 7=middle and 15=right, default 7)
[37] Fix | Delete
* _GUS_VOICEFREQ - Sets voice (sample) playback frequency (P1=Hz)
[38] Fix | Delete
* _GUS_VOICEVOL - Sets voice volume (P1=volume, 0xfff=max, 0xeff=half, 0x000=off)
[39] Fix | Delete
* _GUS_VOICEVOL2 - Sets voice volume (P1=volume, 0xfff=max, 0xeff=half, 0x000=off)
[40] Fix | Delete
* (Like GUS_VOICEVOL but doesn't change the hw
[41] Fix | Delete
* volume. It just updates volume in the voice table).
[42] Fix | Delete
*
[43] Fix | Delete
* _GUS_RAMPRANGE - Sets limits for volume ramping (P1=low volume, P2=high volume)
[44] Fix | Delete
* _GUS_RAMPRATE - Sets the speed for volume ramping (P1=scale, P2=rate)
[45] Fix | Delete
* _GUS_RAMPMODE - Sets the volume ramping mode (P1=ramping mode)
[46] Fix | Delete
* _GUS_RAMPON - Starts volume ramping (no parameters)
[47] Fix | Delete
* _GUS_RAMPOFF - Stops volume ramping (no parameters)
[48] Fix | Delete
* _GUS_VOLUME_SCALE - Changes the volume calculation constants
[49] Fix | Delete
* for all voices.
[50] Fix | Delete
*/
[51] Fix | Delete
[52] Fix | Delete
#define _GUS_NUMVOICES 0x00
[53] Fix | Delete
#define _GUS_VOICESAMPLE 0x01 /* OBSOLETE */
[54] Fix | Delete
#define _GUS_VOICEON 0x02
[55] Fix | Delete
#define _GUS_VOICEOFF 0x03
[56] Fix | Delete
#define _GUS_VOICEMODE 0x04
[57] Fix | Delete
#define _GUS_VOICEBALA 0x05
[58] Fix | Delete
#define _GUS_VOICEFREQ 0x06
[59] Fix | Delete
#define _GUS_VOICEVOL 0x07
[60] Fix | Delete
#define _GUS_RAMPRANGE 0x08
[61] Fix | Delete
#define _GUS_RAMPRATE 0x09
[62] Fix | Delete
#define _GUS_RAMPMODE 0x0a
[63] Fix | Delete
#define _GUS_RAMPON 0x0b
[64] Fix | Delete
#define _GUS_RAMPOFF 0x0c
[65] Fix | Delete
#define _GUS_VOICEFADE 0x0d
[66] Fix | Delete
#define _GUS_VOLUME_SCALE 0x0e
[67] Fix | Delete
#define _GUS_VOICEVOL2 0x0f
[68] Fix | Delete
#define _GUS_VOICE_POS 0x10
[69] Fix | Delete
[70] Fix | Delete
/*
[71] Fix | Delete
* GUS API macros
[72] Fix | Delete
*/
[73] Fix | Delete
[74] Fix | Delete
#define _GUS_CMD(chn, voice, cmd, p1, p2) \
[75] Fix | Delete
{_SEQ_NEEDBUF(8); _seqbuf[_seqbufptr] = SEQ_PRIVATE;\
[76] Fix | Delete
_seqbuf[_seqbufptr+1] = (chn); _seqbuf[_seqbufptr+2] = cmd;\
[77] Fix | Delete
_seqbuf[_seqbufptr+3] = voice;\
[78] Fix | Delete
*(unsigned short*)&_seqbuf[_seqbufptr+4] = p1;\
[79] Fix | Delete
*(unsigned short*)&_seqbuf[_seqbufptr+6] = p2;\
[80] Fix | Delete
_SEQ_ADVBUF(8);}
[81] Fix | Delete
[82] Fix | Delete
#define GUS_NUMVOICES(chn, p1) _GUS_CMD(chn, 0, _GUS_NUMVOICES, (p1), 0)
[83] Fix | Delete
#define GUS_VOICESAMPLE(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICESAMPLE, (p1), 0) /* OBSOLETE */
[84] Fix | Delete
#define GUS_VOICEON(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEON, (p1), 0)
[85] Fix | Delete
#define GUS_VOICEOFF(chn, voice) _GUS_CMD(chn, voice, _GUS_VOICEOFF, 0, 0)
[86] Fix | Delete
#define GUS_VOICEFADE(chn, voice) _GUS_CMD(chn, voice, _GUS_VOICEFADE, 0, 0)
[87] Fix | Delete
#define GUS_VOICEMODE(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEMODE, (p1), 0)
[88] Fix | Delete
#define GUS_VOICEBALA(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEBALA, (p1), 0)
[89] Fix | Delete
#define GUS_VOICEFREQ(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICEFREQ, \
[90] Fix | Delete
(p) & 0xffff, ((p) >> 16) & 0xffff)
[91] Fix | Delete
#define GUS_VOICEVOL(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEVOL, (p1), 0)
[92] Fix | Delete
#define GUS_VOICEVOL2(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_VOICEVOL2, (p1), 0)
[93] Fix | Delete
#define GUS_RAMPRANGE(chn, voice, low, high) _GUS_CMD(chn, voice, _GUS_RAMPRANGE, (low), (high))
[94] Fix | Delete
#define GUS_RAMPRATE(chn, voice, p1, p2) _GUS_CMD(chn, voice, _GUS_RAMPRATE, (p1), (p2))
[95] Fix | Delete
#define GUS_RAMPMODE(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_RAMPMODE, (p1), 0)
[96] Fix | Delete
#define GUS_RAMPON(chn, voice, p1) _GUS_CMD(chn, voice, _GUS_RAMPON, (p1), 0)
[97] Fix | Delete
#define GUS_RAMPOFF(chn, voice) _GUS_CMD(chn, voice, _GUS_RAMPOFF, 0, 0)
[98] Fix | Delete
#define GUS_VOLUME_SCALE(chn, voice, p1, p2) _GUS_CMD(chn, voice, _GUS_VOLUME_SCALE, (p1), (p2))
[99] Fix | Delete
#define GUS_VOICE_POS(chn, voice, p) _GUS_CMD(chn, voice, _GUS_VOICE_POS, \
[100] Fix | Delete
(p) & 0xffff, ((p) >> 16) & 0xffff)
[101] Fix | Delete
[102] Fix | Delete
#endif
[103] Fix | Delete
[104] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function