~ubuntu-branches/ubuntu/saucy/solfege/saucy

« back to all changes in this revision

Viewing changes to solfege/soundcard/solfege_c_midi.i

  • Committer: Bazaar Package Importer
  • Author(s): Tom Cato Amundsen
  • Date: 2010-03-28 06:34:28 UTC
  • mfrom: (1.1.10 upstream) (2.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100328063428-wg2bqvoce2aq4xfb
Tags: 3.15.9-1
* New upstream release.
* Redo packaging. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* GNU Solfege - ear training for GNOME
 
2
 * Copyright (C) 2000, 2001, 2002, 2003, 2004  Tom Cato Amundsen
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU General Public License as published by
 
6
 * the Free Software Foundation; either version 2 of the License, or
 
7
 * (at your option) any later version.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 * GNU General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program; if not, write to the Free Software
 
16
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
17
 *
 
18
 */
 
19
 
 
20
%module solfege_c_midi
 
21
%include "../../config.h"
 
22
%{
 
23
#include "macro_to_function.h"
 
24
extern int seqfd;
 
25
void seqbuf_dump();
 
26
int sndctl_seq_nrsynths();
 
27
int sndctl_seq_reset();
 
28
void sndctl_tmr_timebase(int);
 
29
void sndctl_tmr_tempo(int);
 
30
int sndctl_seq_gettime();
 
31
char * get_synth_name(int i);
 
32
int get_synth_nr_voices(int i);
 
33
 
 
34
%}
 
35
 
 
36
/* defined in macro_to_function.c */
 
37
extern void seq_bender(int devnum, int chan, int value);
 
38
extern void seq_start_note(int devnum, int chan, int tone, int vel);
 
39
extern void seq_stop_note (int devnum, int chan, int note, int vel);
 
40
extern void seq_set_patch (int devnum, int chan, int p);
 
41
extern void seq_set_volume (int devnum, int chan, int volume);
 
42
extern void seq_delta_time(int ticks);
 
43
extern void seq_start_timer();
 
44
 
 
45
extern int errno;
 
46
 
 
47
/* Defined in solfege_c_midi.c */
 
48
extern int seqfd;
 
49
extern void seqbuf_dump();
 
50
extern int sndctl_seq_nrsynths();
 
51
extern int sndctl_seq_reset();
 
52
extern void sndctl_tmr_timebase(int);
 
53
extern void sndctl_tmr_tempo(int);
 
54
extern int sndctl_seq_gettime();
 
55
extern char * get_synth_name(int i);
 
56
extern int get_synth_nr_voices(int i);
 
57
 
 
58
/* All the dsp stuff */
 
59
#if defined(ENABLE_TUNER)
 
60
extern int dsp_open_record();
 
61
extern void dsp_close();
 
62
extern float idle_loop();
 
63
#endif /*ENABLE_TUNER*/