File: OVOLUME.h

package info (click to toggle)
7kaa 2.15.7%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 134,980 kB
  • sloc: cpp: 137,722; ansic: 3,599; asm: 3,523; perl: 1,665; makefile: 1,185; sh: 185; pascal: 27
file content (80 lines) | stat: -rw-r--r-- 1,610 bytes parent folder | download | duplicates (8)
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
/*
 * Seven Kingdoms: Ancient Adversaries
 *
 * Copyright 1997,1998 Enlight Software Ltd.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

// Filename    : OVOLUME.H
// Description : audio volume unit

#ifndef __OVOLUME_H
#define __OVOLUME_H

class DsVolume;
class AbsVolume;
class RelVolume;
class PosVolume;

class DsVolume
{
public:
	long	ds_vol;			// -10,000 to 0 [mB]
	long	ds_pan;			// -10,000 to 10,000

public:
	DsVolume(long dsVol, long dsPan);
	DsVolume(AbsVolume &);
	DsVolume(RelVolume &);
};

class AbsVolume
{
public:
	long	abs_vol;
	long	ds_pan;

public:
	AbsVolume(long absVol, long dsPan);
	AbsVolume(DsVolume &);
};

class RelVolume
{
public:
	long	rel_vol;			// 0 to 100
	long	ds_pan;			// -10,000 to 10,000

public:
	RelVolume()	{}
	RelVolume(long relVol, long dsPan);
	RelVolume(PosVolume &);
	RelVolume(PosVolume &, int drop, int limit);
};

class PosVolume
{
public:
	long	x;
	long	y;

public:
	PosVolume(long relLocX, long relLocY);
};

extern RelVolume DEF_REL_VOLUME;

#endif