~ubuntu-branches/ubuntu/jaunty/nas/jaunty

« back to all changes in this revision

Viewing changes to lib/audio/snd.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve McIntyre
  • Date: 2004-06-23 01:15:02 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040623011502-30uqd1dyu47iv2dp
Tags: 1.6d-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#include <stdio.h>
34
34
#include <audio/audio.h>        /* for AuInt32 and AuUint32 */
35
35
 
36
 
/*
37
 
 * If we are being used outside the NCD-AUDIO sound library, then we'll need
38
 
 * some ANSIfication definitions.
39
 
 */
40
 
#ifndef NeedFunctionPrototypes
41
 
#if defined(FUNCPROTO) || __STDC__ || defined(__cplusplus) || defined(c_plusplus)
42
 
#define NeedFunctionPrototypes 1
43
 
#else
44
 
#define NeedFunctionPrototypes 0
45
 
#endif
46
 
#endif                                          /* NeedFunctionPrototypes */
47
 
 
48
36
#ifndef _SndConst
49
37
#if __STDC__ || defined(__cplusplus) || defined(c_plusplus) || (FUNCPROTO&4)
50
38
#define _SndConst const
131
119
 
132
120
extern SndInfo *
133
121
SndOpenFileForReading(
134
 
#if NeedFunctionPrototypes
135
122
                      _SndConst char *          /* file name */
136
 
#endif
137
123
);
138
124
 
139
125
extern SndInfo *
140
126
SndOpenFileForWriting(
141
 
#if NeedFunctionPrototypes
142
127
                      _SndConst char *,         /* file name */
143
128
                      SndInfo *                 /* info */
144
 
#endif
145
129
);
146
130
 
147
131
extern int
148
132
SndCloseFile(
149
 
#if NeedFunctionPrototypes
150
133
             SndInfo *                          /* info */
151
 
#endif
152
134
);
153
135
 
154
136
extern int
155
137
SndReadFile(
156
 
#if NeedFunctionPrototypes
157
138
            char *,                             /* buffer */
158
139
            int,                                /* num bytes */
159
140
            SndInfo *                           /* info */
160
 
#endif
161
141
);
162
142
 
163
143
extern int
164
144
SndWriteFile(
165
 
#if NeedFunctionPrototypes
166
145
             char *,                            /* buffer */
167
146
             int,                               /* num bytes */
168
147
             SndInfo *                          /* info */
169
 
#endif
170
148
);
171
149
 
172
150
extern int
173
151
SndSeekFile(
174
 
#if NeedFunctionPrototypes
175
152
              int,                              /* number of audio bytes */
176
153
              SndInfo *                         /* info */
177
 
#endif
178
154
);
179
155
 
180
156
extern int
181
157
SndTellFile(
182
 
#if NeedFunctionPrototypes
183
158
              SndInfo *                         /* info */
184
 
#endif
185
159
);
186
160
 
187
161
extern int
188
162
SndFlushFile(
189
 
#if NeedFunctionPrototypes
190
163
              SndInfo *                         /* info */
191
 
#endif
192
164
);
193
165
 
194
166
extern int
195
167
SndRewindFile(
196
 
#if NeedFunctionPrototypes
197
168
              SndInfo *                         /* info */
198
 
#endif
199
169
);
200
170
 
201
171
_FUNCPROTOEND