blob: 5f9edf89e5c90da1075ba790f52d577ded57dca1 [file] [log] [blame]
Nils Wallménius0e496052007-09-24 15:57:32 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2005 Stepan Moskovchenko
11 *
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
Nils Wallménius0e496052007-09-24 15:57:32 +000019int initSynth(struct MIDIfile * mf, char * filename, char * drumConfig);
Nils Wallménius6386dbe2007-09-30 11:21:25 +000020void setPoint(struct SynthObject * so, int pt);
Nils Wallméniusf619f812007-10-08 19:28:41 +000021void synthSamples(int32_t *buf_ptr, unsigned int num_samples);
Nils Wallménius0e496052007-09-24 15:57:32 +000022
Nils Wallménius6888db32007-09-27 20:17:38 +000023static inline struct Event * getEvent(struct Track * tr, int evNum)
24{
25 return tr->dataBlock + (evNum*sizeof(struct Event));
26}
27