diff options
| author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-06-14 21:13:28 +0200 | 
|---|---|---|
| committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-06-14 21:13:28 +0200 | 
| commit | 9453078f2d66fad806ee104e7c6993bba1043c6a (patch) | |
| tree | 3b1ffe1e7b67c7d626336d835b44203f2c2c6ac5 /include | |
| parent | 1bc07f860fa7f01763586f45b7fb2e53cd1c2557 (diff) | |
New input processor filter system. Moved processing from Instrument calss to new input processing filter system and prepared for new latency filter.
Diffstat (limited to 'include')
| -rw-r--r-- | include/event.h | 23 | 
1 files changed, 13 insertions, 10 deletions
| 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 <cstddef> + +// 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] +}; | 
