Nils Wallménius | 0e49605 | 2007-09-24 15:57:32 +0000 | [diff] [blame] | 1 | /*************************************************************************** |
| 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énius | 0e49605 | 2007-09-24 15:57:32 +0000 | [diff] [blame] | 19 | int initSynth(struct MIDIfile * mf, char * filename, char * drumConfig); |
Nils Wallménius | 6386dbe | 2007-09-30 11:21:25 +0000 | [diff] [blame] | 20 | void setPoint(struct SynthObject * so, int pt); |
Nils Wallménius | f619f81 | 2007-10-08 19:28:41 +0000 | [diff] [blame] | 21 | void synthSamples(int32_t *buf_ptr, unsigned int num_samples); |
Nils Wallménius | 0e49605 | 2007-09-24 15:57:32 +0000 | [diff] [blame] | 22 | |
Nils Wallménius | 6888db3 | 2007-09-27 20:17:38 +0000 | [diff] [blame] | 23 | static inline struct Event * getEvent(struct Track * tr, int evNum) |
| 24 | { |
| 25 | return tr->dataBlock + (evNum*sizeof(struct Event)); |
| 26 | } |
| 27 | |