1 2 /* 3 * Diverse Bristol audio routines. 4 * Copyright (c) by Nick Copeland <nickycopeland@hotmail.com> 1996,2012 5 * 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, see <http://www.gnu.org/licenses/>. 19 * 20 */ 21 22 #ifndef AKSENV_H 23 #define AKSENV_H 24 25 #define STATE_START 0 26 #define STATE_ATTACK 0x020 27 #define STATE_ON 0x040 28 #define STATE_DECAY 0x080 29 #define STATE_OFF 0x100 30 31 typedef struct BristolAKSENV { 32 bristolOPSpec spec; 33 } bristolAKSENV; 34 35 typedef struct BristolAKSENVlocal { 36 unsigned int flags; 37 float cgain; 38 float egain; 39 int cstate; 40 int estate; 41 int oncount; 42 } bristolAKSENVlocal; 43 44 #endif /* AKSENV_H */ 45 46