File: AFsetFileType.3tsp

package info (click to toggle)
libtsp 3r0-1
  • links: PTS
  • area: non-free
  • in suites: potato, woody
  • size: 5,096 kB
  • ctags: 1,798
  • sloc: ansic: 14,464; sh: 1,217; makefile: 182
file content (53 lines) | stat: -rw-r--r-- 1,558 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.TH AFsetFileType 3tsp "TSP (libtsp/AF)"
.SH Routine
.in +4n
.ti -4n
int AFsetFileType (const char String[])
.in -4n
.SH Purpose
.in +4n
.ti -4n
Set the input audio file type
.in -4n
.SH Description
This routine sets or gets the audio file type.  Explicitly setting the audio
file type bypasses the check for file type from the file header.
.ft CW
.nf
.ne 3
  "auto"      - determine the input file type from the file header
  "AU" or "au" - AU audio file
  "WAVE" or "wave" - RIFF WAVE file
  "AIFF" or "aiff" - AIFF or AIFF-C audio file
  "noheader"  - headerless (non-standard or no header) audio file
  "SPHERE"    - NIST SPHERE audio file
  "ESPS"      - ESPS sampled data feature file
  "IRCAM"     - IRCAM soundfile
  "SPPACK"    - SPPACK file
  "INRS"      - INRS-Telecom audio file
  "SPW"       - Comdisco SPW Signal file
  "text"      - Text audio file
.fi
.ft P
.PP
If the input string contains has a leading '$', the string is assumed to
specify the name of an environment variable after the '$'.  This routine
uses the value of this environment variable to determine the parameters.  If
this routine is called as AFsetFileType("$AF_FILETYPE"), this routine would
look for the parameter string in environment variable AF_FILETYPE.
.SH Parameters
.in +4n
.ti -4n
<-  int AFsetFileType
.br
Error code, zero for no error
.ti -4n
 -> const char String[]
.br
String with the input file type
.in -4n
.SH Author / revision
P. Kabal  Copyright (C) 1998
/ Revision 1.8  1998/06/13
.SH See Also
libtsp