Revision 15366,
1.4 KB
checked in by ghudson, 24 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r15365,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | /* |
---|
2 | Audio File Library |
---|
3 | |
---|
4 | Copyright 1998, Michael Pruett <michael@68k.org> |
---|
5 | |
---|
6 | This program is free software; you can redistribute it and/or |
---|
7 | modify it under the terms of the GNU General Public License as |
---|
8 | published by the Free Software Foundation; either version 2 of |
---|
9 | the License, or (at your option) any later version. |
---|
10 | |
---|
11 | This program is distributed in the hope that it will be |
---|
12 | useful, but WITHOUT ANY WARRANTY; without even the implied |
---|
13 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
---|
14 | PURPOSE. See the GNU General Public License for more details. |
---|
15 | |
---|
16 | You should have received a copy of the GNU General Public |
---|
17 | License along with this program; if not, write to the Free |
---|
18 | Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
---|
19 | MA 02111-1307, USA. |
---|
20 | */ |
---|
21 | |
---|
22 | /* |
---|
23 | sfinfo.c |
---|
24 | |
---|
25 | This program displays information about audio files. |
---|
26 | */ |
---|
27 | |
---|
28 | #ifdef __USE_SGI_HEADERS__ |
---|
29 | #include <dmedia/audiofile.h> |
---|
30 | #else |
---|
31 | #include <audiofile.h> |
---|
32 | #endif |
---|
33 | |
---|
34 | #include <stdio.h> |
---|
35 | |
---|
36 | /* |
---|
37 | File Name satan.aiff |
---|
38 | File Format Audio Interchange File Format (aiff) |
---|
39 | Data Format 16-bit integer (2's complement, big endian) |
---|
40 | Audio Data 512 KBytes begins at offset 124 (7C hex) |
---|
41 | 2 channels, 131072 frames |
---|
42 | Sampling Rate 44.1 KHz |
---|
43 | Duration 2.97 seconds |
---|
44 | */ |
---|
45 | |
---|
46 | void printfileinfo (char *filename); |
---|
47 | |
---|
48 | int main (int argc, char **argv) |
---|
49 | { |
---|
50 | int i = 1; |
---|
51 | |
---|
52 | while (i < argc) |
---|
53 | { |
---|
54 | printfileinfo(argv[i]); |
---|
55 | i++; |
---|
56 | if (i < argc) |
---|
57 | putchar('\n'); |
---|
58 | } |
---|
59 | |
---|
60 | return 0; |
---|
61 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.