4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright (c) 1990-2001 by Sun Microsystems, Inc.
24 * All rights reserved.
27 #ifndef _MULTIMEDIA_AUDIOLIB_H
28 #define _MULTIMEDIA_AUDIOLIB_H
30 #pragma ident "%Z%%M% %I% %E% SMI"
38 #endif /* NO_EXTERN_C */
42 // Declarations for global functions
45 Audio
* from
, // input source
46 Audio
* to
); // output sink
50 Audio
* from
, // input source
51 Audio
* to
, // output sink
52 Double
& frompos
, // input position (updated)
53 Double
& topos
, // output position (updated)
54 Double
& limit
); // amount to copy (updated)
56 // Copy one data segment
57 AudioError
AudioAsyncCopy(
58 Audio
* from
, // input source
59 Audio
* to
, // output sink
60 Double
& frompos
, // input position (updated)
61 Double
& topos
, // output position (updated)
62 Double
& limit
); // amount to copy (updated)
64 // Filename->AudioList
65 AudioError
Audio_OpenInputFile(
66 const char *path
, // input filename
67 Audio
*& ap
); // returned AudioList ptr
69 // Copy to output file
70 AudioError
Audio_WriteOutputFile(
71 const char *path
, // output filename
72 const AudioHdr
& hdr
, // output data header
73 Audio
* input
); // input data stream
81 #endif /* NO_EXTERN_C */
83 #endif /* !_MULTIMEDIA_AUDIOLIB_H */