1 /*
2  * dts.h
3  * Copyright (C) 2004 Gildas Bazin <gbazin@videolan.org>
4  *
5  * This file is part of libdca, a free DTS Coherent Acoustics stream decoder.
6  * See http://www.videolan.org/developers/libdca.html for updates.
7  *
8  * libdca is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * libdca is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the
20  * Free Software Foundation, Inc.,
21  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22  */
23 
24 #ifndef LIBDCA_COMPAT_H
25 # define LIBDCA_COMPAT_H 1
26 # include <dca.h>
27 
28 typedef struct dca_state_s dts_state_t;
29 # define DTS_MONO DCA_MONO
30 # define DTS_CHANNEL DCA_CHANNEL
31 # define DTS_STEREO DCA_STEREO
32 # define DTS_STEREO_SUMDIFF DCA_STEREO_SUMDIFF
33 # define DTS_STEREO_TOTAL DCA_STEREO_TOTAL
34 # define DTS_3F DCA_3F
35 # define DTS_2F1R DCA_2F1R
36 # define DTS_3F1R DCA_3F1R
37 # define DTS_2F2R DCA_2F2R
38 # define DTS_3F2R DCA_3F2R
39 # define DTS_4F2R DCA_4F2R
40 # define DTS_DOLBY DCA_DOLBY
41 # define DTS_CHANNEL_MAX DCA_CHANNEL_MAX
42 # define DTS_CHANNEL_BITS DCA_CHANNEL_BITS
43 # define DTS_CHANNEL_MASK DCA_CHANNEL_MASK
44 # define DTS_LFE DCA_LFE
45 # define DTS_ADJUST_LEVEL DCA_ADJUST_LEVEL
46 
47 # define dts_init dca_init
48 # define dts_syncinfo dca_syncinfo
49 # define dts_frame dca_frame
50 # define dts_dynrng dca_dynrng
51 # define dts_blocks_num dca_blocks_num
52 # define dts_block dca_block
53 # define dts_samples dca_samples
54 # define dts_free dca_free
55 #endif
56