Path: blob/master/libs/fluidsynth/src/synth/fluid_event.h
4396 views
/* FluidSynth - A Software Synthesizer1*2* Copyright (C) 2003 Peter Hanappe and others.3*4* This library is free software; you can redistribute it and/or5* modify it under the terms of the GNU Lesser General Public License6* as published by the Free Software Foundation; either version 2.1 of7* the License, or (at your option) any later version.8*9* This library is distributed in the hope that it will be useful, but10* WITHOUT ANY WARRANTY; without even the implied warranty of11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU12* Lesser General Public License for more details.13*14* You should have received a copy of the GNU Lesser General Public15* License along with this library; if not, write to the Free16* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA17* 02110-1301, USA18*/192021#ifndef _FLUID_EVENT_PRIV_H22#define _FLUID_EVENT_PRIV_H2324#include "fluidsynth.h"2526#ifdef __cplusplus27extern "C" {28#endif2930typedef int fluid_note_id_t;3132/* Private data for event */33/* ?? should be optimized in size, using unions */34struct _fluid_event_t35{36unsigned int time;37int type;38fluid_seq_id_t src;39fluid_seq_id_t dest;40int channel;41short key;42short vel;43short control;44int value;45fluid_note_id_t id;46int pitch;47unsigned int duration;48double scale;49void *data;50};5152unsigned int fluid_event_get_time(fluid_event_t *evt);53void fluid_event_set_time(fluid_event_t *evt, unsigned int time);5455fluid_note_id_t fluid_event_get_id(fluid_event_t *evt);56void fluid_event_set_id(fluid_event_t *evt, fluid_note_id_t id);5758void fluid_event_clear(fluid_event_t *evt);5960#ifdef __cplusplus61}62#endif6364#endif /* _FLUID_EVENT_PRIV_H */656667