Fix FreeBSD build.
[haiku.git] / headers / os / midi / MidiText.h
bloba70638d4490fa24f3d2a6cc03c964b9834d3d74a
2 #ifndef _MIDI_TEXT_H
3 #define _MIDI_TEXT_H
5 #include <BeBuild.h>
6 #include <Midi.h>
7 #include <stdio.h>
9 class BMidiText : public BMidi {
10 public:
12 BMidiText();
13 virtual ~BMidiText();
15 virtual void NoteOff(
16 uchar channel, uchar note, uchar velocity, uint32 time = B_NOW);
18 virtual void NoteOn(
19 uchar channel, uchar note, uchar velocity, uint32 time = B_NOW);
21 virtual void KeyPressure(
22 uchar channel, uchar note, uchar pressure, uint32 time = B_NOW);
24 virtual void ControlChange(
25 uchar channel, uchar controlNumber, uchar controlValue,
26 uint32 time = B_NOW);
28 virtual void ProgramChange(
29 uchar channel, uchar programNumber, uint32 time = B_NOW);
31 virtual void ChannelPressure(
32 uchar channel, uchar pressure, uint32 time = B_NOW);
34 virtual void PitchBend(
35 uchar channel, uchar lsb, uchar msb, uint32 time = B_NOW);
37 virtual void SystemExclusive(
38 void* data, size_t length, uint32 time = B_NOW);
40 virtual void SystemCommon(
41 uchar status, uchar data1, uchar data2, uint32 time = B_NOW);
43 virtual void SystemRealTime(uchar status, uint32 time = B_NOW);
45 void ResetTimer(bool start = false);
47 private:
49 virtual void _ReservedMidiText1();
50 virtual void _ReservedMidiText2();
51 virtual void _ReservedMidiText3();
53 virtual void Run();
55 void _WaitAndPrint(uint32 time);
57 uint32 fStartTime;
58 uint32 _reserved[4];
61 #endif // _MIDI_TEXT_H