|
|
1.1 root 1: /*
2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3: *
4: * @APPLE_LICENSE_HEADER_START@
5: *
6: * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
7: * Reserved. This file contains Original Code and/or Modifications of
8: * Original Code as defined in and that are subject to the Apple Public
9: * Source License Version 1.1 (the "License"). You may not use this file
10: * except in compliance with the License. Please obtain a copy of the
11: * License at http://www.apple.com/publicsource and read it before using
12: * this file.
13: *
14: * The Original Code and all software distributed under the License are
15: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18: * FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT. Please see the
19: * License for the specific language governing rights and limitations
20: * under the License.
21: *
22: * @APPLE_LICENSE_HEADER_END@
23: */
24: /*
25: * audio_mix.h
26: *
27: * Copyright (c) 1991, NeXT Computer, Inc. All rights reserved.
28: *
29: * Audio driver mixing prototypes.
30: *
31: * HISTORY
32: * 07/14/92/mtm Original coding.
33: */
34:
35: #import "audio_types.h"
36: #import <bsd/sys/types.h>
37:
38: extern void audio_swapSamples(short *src, short *dest, u_int count);
39: extern void audio_twosComp8ToUnary(char *src, char *dest, u_int count);
40: extern u_int audio_scaleSamples(char *src, char *dest, u_int count,
41: IOAudioDataFormat format, u_int chanCount,
42: int leftGain, int rightGain);
43: extern void audio_resample22To44(char *src, char *dest, u_int count,
44: IOAudioDataFormat format, u_int channelCount);
45: extern void audio_resample44To22(char *src, char *dest, u_int count,
46: IOAudioDataFormat format, u_int *phase);
47: extern void audio_convertMonoToStereo(char *src, char *dest, u_int count,
48: IOAudioDataFormat format);
49: extern void audio_convertStereoToMono(char *src, char *dest, u_int count,
50: IOAudioDataFormat format, u_int *phase);
51: extern void audio_convertLinear8ToLinear16(char *src, short *dest,
52: u_int count);
53: extern void audio_convertLinear8ToMulaw8(char *src, char *dest, u_int count);
54: extern void audio_convertLinear16ToLinear8(short *src, char *dest, u_int count,
55: u_int *phase);
56: extern void audio_convertLinear16ToMulaw8(short *src, char *dest, u_int count,
57: u_int *phase);
58: extern void audio_convertMulaw8ToLinear16(char *src, short *dest, u_int count);
59: extern void audio_convertMulaw8ToLinear8(char *src, char *dest, u_int count);
60: extern u_int audio_mix(char *src, char *dest, u_int count,
61: IOAudioDataFormat format, boolean_t virgin);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.