-
Notifications
You must be signed in to change notification settings - Fork 2
/
audiofile.h
87 lines (72 loc) · 1.73 KB
/
audiofile.h
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
85
86
87
#ifndef CAMX_AUDIOFILE
#define CAMX_AUDIOFILE 1
#include "object.h"
class guiWindow;
class Seq_Song;
class Seq_Track;
class Seq_Pattern;
class AudioChannel;
class AudioHardwareChannel;
class AudioHardwareBuffer;
class AudioPattern;
class RunningAudioFile;
class AudioRealtime;
class guiBitmap;
class guiTimeLine;
class InitPlay;
class RecordingAudioFile;
class AudioHDFile;
class Edit_Arrange;
class AutomationTrack_Volume_Pattern;
class AudioRegion;
class Seq_CrossFade;
class Seq_Pattern_VolumeCurve;
class AudioGFX_Region:public Object
{
public:
AudioRegion *region;
int x,x2;
AudioGFX_Region *Next(){return (AudioGFX_Region*)next;}
};
class PatternVolumePositions{
public:
enum{
IN_FADEIN=1,
IN_VOLUME,
IN_FADEOUT
};
PatternVolumePositions()
{
fadeoutondisplay=fadeinondisplay=volumeondisplay=false;
}
int CheckXY(int x,int y);
bool SetMouse(guiWindow *win,int type);
void InitEdit();
int fadeinx,fadeiny,fadeinx2,fadeiny2,
fadeoutx,fadeouty,fadeoutx2,fadeouty2,
volumex,volumey,volumex2,volumey2;
bool fadeinondisplay,fadeoutondisplay,volumeondisplay;
};
class AudioGFX
{
public:
AudioGFX();
~AudioGFX(){
regions.DeleteAllO();
}
OList regions; // AudioGFX_Region
guiWindow *win;
guiBitmap *bitmap;
guiTimeLine *timeline;
AudioPattern *audiopattern;
Seq_CrossFade *crossfade;
Seq_Pattern_VolumeCurve *patternvolumecurve;
PatternVolumePositions *patternvolumepositions;
LONGLONG startposition,regionstart,regionend,samplesperpixel,*ostartx;
double samplezoom;
OSTART start,eventstart,eventend;
int x,y,x2,y2,samplex2,drawcolour,linecolour;
bool showscale,undermove,showmix,showregion,usebitmap,subpattern,mouseselection,
drawborder,showregionsinside,dontclearbackground,showline,nonreal,showvolumecurve;
};
#endif