1 /*-------------- Telecommunications & Signal Processing Lab ---------------
2                              McGill University
3 
4 Routine:
5   int AOsetFormat (const struct AO_FOpar *FO, AFILE *AFp[], int Nf)
6 
7 Purpose:
8   Determine a compatible output data format and output file type
9 
10 Description:
11   Use AOsetFtype and AOsetDformat instead.
12 
13 Parameters:
14   <-  int AOsetFormat
15       Output code for the file type and data format
16    -> const struct AO_FOpar *FO
17       Output file parameters.  The file type (FO->Ftype) can be FTW_UNDEF.
18       The data format (FO->DFormat.Format) can be FD_UNDEF.
19    -> const AFILE *AFp[]
20       Audio file pointers for the input files (Nf values)
21    -> int Nf
22       Number of input audio file pointers (can be zero)
23 
24 Author / revision:
25   P. Kabal  Copyright (C) 2003
26   $Revision: 1.32 $  $Date: 2003/05/12 23:54:00 $
27 
28 -------------------------------------------------------------------------*/
29 
30 #include <AO.h>
31 
32 int
AOsetFormat(const struct AO_FOpar * FO,AFILE * AFp[],int Nf)33 AOsetFormat (const struct AO_FOpar *FO, AFILE *AFp[], int Nf)
34 
35 {
36   int Ftype, Dformat;
37 
38   Ftype = AOsetFtype (FO);
39   Dformat = AOsetDformat (FO, AFp, Nf);
40 
41   return (Dformat + 256 * Ftype);
42 }
43