annotate playercode/unix_drv/drv_AF.c @ 18:db40f957950f

Replaced the shell scripts with a Makefile
author darius
date Thu, 23 Apr 1998 22:58:04 +0000
parents b30908f9d9f9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
1 /*
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
2
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
3 Name:
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
4 DRV_AF.C
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
5
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
6 Description:
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
7 Mikmod driver for output on AF audio server.
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
8
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
9 Written by Roine Gustafsson <e93_rog@e.kth.se> Oct 25, 1995
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
10
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
11 Portability:
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
12 Unixes running Digital AudioFile library, available from
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
13 ftp://crl.dec.com/pub/DEC/AF
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
14
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
15 Usage:
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
16 Run the audio server (Aaxp&, Amsb&, whatever)
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
17 Set environment variable AUDIOFILE to something like 'mymachine:0'.
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
18 Remember, stereo is default! See commandline switches.
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
19
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
20 I have a version which uses 2 computers for stereo.
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
21 Contact me if you want it.
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
22
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
23 THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
24 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
25 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
26 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
27 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
28 NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
29 CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
30
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
31 History:
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
32 ver 1.21 Bugfix: AFFragmentSize could end up uneven.
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
33 Thanks to Marcus Sundberg <e94_msu@e.kth.se>
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
34 ver 1.22 Compatibility: change "AFBuffer" to "audiobuffer"
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
35 Steve McIntyre <stevem@chiark.greenend.org.uk>
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
36 ver 1.30 Compatibility: Use new driver API
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
37 Steve McIntyre <stevem@chiark.greenend.org.uk>
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
38 */
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
39
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
40 #include <malloc.h>
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
41 #include <stdlib.h>
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
42 #include <AF/AFlib.h>
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
43
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
44 #include "mikmod.h"
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
45
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
46 /* Global variables */
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
47
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
48 SBYTE *audiobuffer;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
49 static int AFFragmentSize;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
50 AFAudioConn *AFaud;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
51 ATime AFtime;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
52 AC AFac;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
53 AFDeviceDescriptor *AFdesc;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
54
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
55 BOOL AF_IsThere(void)
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
56 {
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
57
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
58 /* I'll think of a detection routine ... somtime */
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
59
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
60 return 1;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
61
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
62 }
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
63
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
64 BOOL AF_Init(void)
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
65 {
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
66 unsigned long mask;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
67 AFSetACAttributes attributes;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
68 int srate;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
69 ADevice device;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
70 unsigned int channels;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
71 AEncodeType type;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
72 char *server;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
73 int n;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
74
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
75 AFaud = AFOpenAudioConn( "" );
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
76 if ( AFaud == NULL ) {
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
77 myerr="Cannot open sounddevice.";
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
78 return 0;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
79 }
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
80
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
81 /* Search for a suitable device */
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
82 device = -1;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
83 for ( n = 0; n < AFaud->ndevices; n++ ) {
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
84 AFdesc = AAudioDeviceDescriptor( AFaud, n );
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
85 if ( AFdesc->playNchannels == 2 && md_mode&DMODE_STEREO ) {
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
86 device = n;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
87 break;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
88 }
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
89 if ( AFdesc->playNchannels == 1 && !(md_mode&DMODE_STEREO) ) {
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
90 device = n;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
91 break;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
92 }
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
93 }
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
94 if ( device == -1 ) {
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
95 myerr="Cannot find suitable audio port!";
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
96 AFCloseAudioConn( AFaud );
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
97 return 0;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
98 }
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
99
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
100 attributes.preempt = Mix;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
101 attributes.start_timeout = 0;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
102 attributes.end_silence = 0;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
103 attributes.type = LIN16; /* In case of an 8bit device, the AF converts the 16 bit data to 8 bit */
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
104 attributes.channels = (md_mode&DMODE_STEREO)? Stereo: Mono;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
105
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
106 mask = ACPreemption | ACEncodingType | ACStartTimeout | ACEndSilence | ACChannels;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
107 AFac = AFCreateAC( AFaud, device, mask, &attributes );
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
108 srate=AFac->device->playSampleFreq;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
109
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
110 md_mode|=DMODE_16BITS; /* This driver only handles 16bits */
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
111 AFFragmentSize = (srate/40)*8; /* Update 5 times/sec */
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
112 md_mixfreq=srate; /* set mixing freq */
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
113
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
114 if ( md_mode & DMODE_STEREO ) {
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
115 if ( ( audiobuffer = (SBYTE *)malloc( 2*2*AFFragmentSize ) ) == NULL ) {
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
116 myerr="Out of memory!";
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
117 AFCloseAudioConn( AFaud );
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
118 return 0;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
119 }
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
120
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
121 } else {
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
122 if ( ( audiobuffer = (SBYTE *)malloc( 2*AFFragmentSize ) ) == NULL ) {
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
123 myerr="Out of memory!";
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
124 AFCloseAudioConn( AFaud );
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
125 return 0;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
126 }
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
127 }
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
128
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
129 if ( !VC_Init() ) {
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
130 AFCloseAudioConn( AFaud );
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
131 free( audiobuffer );
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
132 return 0;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
133 }
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
134
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
135 return 1;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
136 }
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
137
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
138 void AF_PlayStart( void )
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
139 {
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
140
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
141 AFtime = AFGetTime( AFac );
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
142 VC_PlayStart();
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
143
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
144 }
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
145
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
146
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
147 void AF_Exit(void)
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
148 {
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
149
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
150 VC_Exit();
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
151 AFCloseAudioConn(AFaud);
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
152 free( AFBuffer );
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
153
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
154 }
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
155
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
156 void AF_Update(void)
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
157 {
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
158
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
159 UWORD *p,*l,*r;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
160 int i;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
161
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
162
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
163 VC_WriteBytes( AFBuffer, AFFragmentSize );
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
164 if ( md_mode & DMODE_STEREO ) {
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
165 AFPlaySamples( AFac, AFtime, AFFragmentSize, (unsigned char *)AFBuffer );
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
166 AFtime+=AFFragmentSize/4;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
167 // while ( AFGetTime( AFac ) < AFtime-1000 );
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
168 } else {
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
169 AFPlaySamples( AFac, AFtime, AFFragmentSize, (unsigned char *)AFBuffer );
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
170 AFtime+=AFFragmentSize/2;
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
171 // while ( AFGetTime( AFac ) < AFtime-1000 );
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
172 }
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
173
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
174 }
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
175
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
176
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
177 DRIVER drv_AF={
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
178 NULL,
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
179 "AF driver",
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
180 "MikMod AudioFile Driver v1.22",
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
181 AF_IsThere,
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
182 VC_SampleLoad,
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
183 VC_SampleUnload,
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
184 VC_SampleSpace,
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
185 VC_SampleLength,
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
186 AF_Init,
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
187 AF_Exit,
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
188 VC_SetNumChannels,
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
189 AF_PlayStart,
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
190 VC_PlayStop,
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
191 AF_Update,
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
192 VC_VoiceSetVolume,
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
193 VC_VoiceSetFrequency,
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
194 VC_VoiceSetPanning,
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
195 VC_VoicePlay,
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
196 VC_VoiceStop,
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
197 VC_VoiceStopped,
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
198 VC_VoiceReleaseSustain,
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
199 VC_VoiceGetPosition,
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
200 VC_RealVolume
b30908f9d9f9 Initial entry of mikmod into the CVS tree.
darius
parents:
diff changeset
201 };