1 /* OpenCP Module Player 2 * copyright (c) '94-'10 Niklas Beisert <nbeisert@physik.tu-muenchen.de> 3 * 4 * Variables for wavetable system 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 * 20 * revision history: (please note changes here) 21 * -nb980510 Niklas Beisert <nbeisert@physik.tu-muenchen.de> 22 * -first release 23 */ 24 25 #include "config.h" 26 #include "types.h" 27 #include "mcp.h" 28 29 int mcpNChan; 30 31 void (*mcpIdle)(void); 32 33 int (*mcpLoadSamples)(struct sampleinfo* si, int n); 34 int (*mcpOpenPlayer)(int, void (*p)(void), struct ocpfilehandle_t *source_file); 35 void (*mcpClosePlayer)(void); 36 void (*mcpSet)(int ch, int opt, int val); 37 int (*mcpGet)(int ch, int opt); 38 void (*mcpGetRealVolume)(int ch, int *l, int *r); 39 void (*mcpGetRealMasterVolume)(int *l, int *r); 40 void (*mcpGetMasterSample)(int16_t *s, unsigned int len, uint32_t rate, int opt); 41 int (*mcpGetChanSample)(unsigned int ch, int16_t *s, unsigned int len, uint32_t rate, int opt); 42 int (*mcpMixChanSamples)(unsigned int *ch, unsigned int n, int16_t *s, unsigned int len, uint32_t rate, int opt); 43 44 unsigned int mcpMixMaxRate; 45 unsigned int mcpMixProcRate; 46 int mcpMixOpt; 47 unsigned int mcpMixBufSize; 48