msm6258var.h revision 1.9
1/*	$NetBSD: msm6258var.h,v 1.9 2017/08/05 05:53:26 isaki Exp $	*/
2
3/*
4 * Copyright (c) 2001 Tetsuya Isaki. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 *    notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 *    notice, this list of conditions and the following disclaimer in the
13 *    documentation and/or other materials provided with the distribution.
14 *
15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
20 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
22 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
23 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28/*
29 * OKI MSM6258 ADPCM voice synthesizer codec.
30 */
31extern stream_filter_factory_t msm6258_slinear16_to_adpcm;
32extern stream_filter_factory_t msm6258_linear8_to_adpcm;
33extern stream_filter_factory_t msm6258_adpcm_to_slinear16;
34extern stream_filter_factory_t msm6258_adpcm_to_linear8;
35
36/* XXX */
37extern void *vs_alloc_msm6258codec(void);
38extern void vs_free_msm6258codec(void *);
39extern void vs_slinear16be_to_adpcm(void *, void *, const void *, int);
40extern void vs_slinear8_to_adpcm(void *, void *, const void *, int);
41extern void vs_adpcm_to_slinear16be(void *, void *, int, const void *);
42extern void vs_adpcm_to_slinear8(void *, void *, int, const void *);
43