File: structs.h

package info (click to toggle)
gmod 3.1-8.3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,340 kB
  • ctags: 808
  • sloc: cpp: 7,764; makefile: 76
file content (84 lines) | stat: -rw-r--r-- 1,812 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// -*-C++-*-
// This file is part of the gmod package
// Copyright (C) 1997 by Andrew J. Robinson

/* This file is part of the GMOD package */

#ifndef __structsH
#define __structsH

struct noteInfo
{
  unsigned char note;
  unsigned char sample;
  unsigned char command[2];
  unsigned char parm1[2], parm2[2];
};

struct voiceInfo
{
  short position;		/* for "pattern-loop" command */
  short pattern;		/* for "pattern-loop" command */
  unsigned char loopTimes;	/* for "pattern-loop" command */
  unsigned char lastInfo;
};

struct effectInfo
{
  short pattern;		/* position in pattern for jumps, etc */
  short position;		/* position in song for jumps, etc */
  unsigned char delayNotes;	/* for "pattern delay" command */
  unsigned char loopChan;	/* for "pattern loop" command */
};

struct songInfo
{
  short nrTracks;
  short songlength;
  unsigned int nrSamples;
  unsigned int nrPatterns;
  unsigned char type;
  unsigned char nrChannels;
  unsigned char lowestNote;
  unsigned char highestNote;
  unsigned char playSpeed;
  unsigned char tempo;
  unsigned char volType;
  unsigned char volOnZero;
  unsigned char slideType;
  unsigned char panning[MAX_TRACK];
  unsigned char globalVol;
  unsigned char clockSpeed;
  unsigned char commentLineLen;
  char name[NAME_LEN];
  char desc[DESC_LEN];
  char *comment;
};

struct optionsInfo
{
  unsigned char mainVolume;
#ifndef USE_X
  unsigned char loopBreaker;
#endif
  unsigned char showEmptySamples;
  unsigned char bpmTempos;
  unsigned char compress;
  unsigned char tolerant;
  unsigned char repeat;
  unsigned char ntsc;
  unsigned char mixer;
  unsigned char extendOct;
  unsigned char randomize;
  signed char panFactor;
  unsigned char use_50hz;
  unsigned char checkMagic;
};

struct xStruct
{
  char **fileStrings;
  int nrFileStrings;
};

#endif