From 9453078f2d66fad806ee104e7c6993bba1043c6a Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 14 Jun 2016 21:13:28 +0200 Subject: New input processor filter system. Moved processing from Instrument calss to new input processing filter system and prepared for new latency filter. --- include/event.h | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'include') diff --git a/include/event.h b/include/event.h index f8bced3..afb1db4 100644 --- a/include/event.h +++ b/include/event.h @@ -24,17 +24,20 @@ * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#ifndef __DRUMGIZMO_EVENT_H__ -#define __DRUMGIZMO_EVENT_H__ +#pragma once +#include + +// TODO: Make enum class +//! Event types #define TYPE_ONSET 0 #define TYPE_STOP 1 -typedef struct { - size_t type; - size_t instrument; - size_t offset; - float velocity; -} event_t; - -#endif/*__DRUMGIZMO_EVENT_H__*/ +//! POD datatype for input event transport. +struct event_t +{ + std::size_t type; //!< The type of the event. + std::size_t instrument; //!< The instrument number. + std::size_t offset; //!< The offset position in the input buffer + float velocity; //!< The velocity if the type is a note on [0; 1] +}; -- cgit v1.2.3