3 * A UI widget that measures the amount of MIDI data generated by a
6 * Copyright 2013, Haiku, Inc. All rights reserved.
7 * Distributed under the terms of the MIT License.
9 * Revisions by Pete Goodeve
11 * Copyright 1999, Be Incorporated. All Rights Reserved.
12 * This file may be used under the terms of the Be Sample Code License.
14 #ifndef MIDIEVENTMETER_H
15 #define MIDIEVENTMETER_H
21 class CountEventConsumer
;
27 MidiEventMeter(int32 producerID
);
30 void Pulse(BView
* view
);
32 void Draw(BView
* view
);
35 int32
CalcMeterLevel(int32 eventCount
) const;
37 CountEventConsumer
* fCounter
;
41 #endif /* MIDIEVENTMETER_H */