diff options
Diffstat (limited to 'linden/indra/newview/VorbisFramework.h')
-rw-r--r-- | linden/indra/newview/VorbisFramework.h | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/linden/indra/newview/VorbisFramework.h b/linden/indra/newview/VorbisFramework.h new file mode 100644 index 0000000..8d4369d --- /dev/null +++ b/linden/indra/newview/VorbisFramework.h | |||
@@ -0,0 +1,81 @@ | |||
1 | /** | ||
2 | * @file VorbisFramework.h | ||
3 | * @author Dave Camp | ||
4 | * @date Fri Oct 10 2003 | ||
5 | * @brief For the Macview project | ||
6 | * | ||
7 | * Copyright (c) 2003-2007, Linden Research, Inc. | ||
8 | * | ||
9 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
10 | * to you under the terms of the GNU General Public License, version 2.0 | ||
11 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
12 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
13 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
14 | * online at http://secondlife.com/developers/opensource/gplv2 | ||
15 | * | ||
16 | * There are special exceptions to the terms and conditions of the GPL as | ||
17 | * it is applied to this Source Code. View the full text of the exception | ||
18 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
19 | * online at http://secondlife.com/developers/opensource/flossexception | ||
20 | * | ||
21 | * By copying, modifying or distributing this software, you acknowledge | ||
22 | * that you have read and understood your obligations described above, | ||
23 | * and agree to abide by those obligations. | ||
24 | * | ||
25 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
26 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
27 | * COMPLETENESS OR PERFORMANCE. | ||
28 | */ | ||
29 | |||
30 | #ifdef __cplusplus | ||
31 | extern "C" { | ||
32 | #endif | ||
33 | |||
34 | #include "ogg/ogg.h" | ||
35 | #include "vorbis/codec.h" | ||
36 | #include "vorbis/vorbisenc.h" | ||
37 | |||
38 | extern int mac_vorbis_analysis(vorbis_block *vb,ogg_packet *op); | ||
39 | |||
40 | extern int mac_vorbis_analysis_headerout(vorbis_dsp_state *v, | ||
41 | vorbis_comment *vc, | ||
42 | ogg_packet *op, | ||
43 | ogg_packet *op_comm, | ||
44 | ogg_packet *op_code); | ||
45 | |||
46 | extern int mac_vorbis_analysis_init(vorbis_dsp_state *v,vorbis_info *vi); | ||
47 | |||
48 | extern int mac_vorbis_encode_ctl(vorbis_info *vi,int number,void *arg); | ||
49 | |||
50 | extern int mac_vorbis_encode_setup_init(vorbis_info *vi); | ||
51 | |||
52 | extern int mac_vorbis_encode_setup_managed(vorbis_info *vi, | ||
53 | long channels, | ||
54 | long rate, | ||
55 | |||
56 | long max_bitrate, | ||
57 | long nominal_bitrate, | ||
58 | long min_bitrate); | ||
59 | |||
60 | extern void mac_vorbis_info_init(vorbis_info *vi); | ||
61 | extern void mac_vorbis_info_clear(vorbis_info *vi); | ||
62 | extern void mac_vorbis_comment_init(vorbis_comment *vc); | ||
63 | extern void mac_vorbis_comment_clear(vorbis_comment *vc); | ||
64 | extern int mac_vorbis_block_init(vorbis_dsp_state *v, vorbis_block *vb); | ||
65 | extern int mac_vorbis_block_clear(vorbis_block *vb); | ||
66 | extern void mac_vorbis_dsp_clear(vorbis_dsp_state *v); | ||
67 | extern float **mac_vorbis_analysis_buffer(vorbis_dsp_state *v,int vals); | ||
68 | extern int mac_vorbis_analysis_wrote(vorbis_dsp_state *v,int vals); | ||
69 | extern int mac_vorbis_analysis_blockout(vorbis_dsp_state *v,vorbis_block *vb); | ||
70 | |||
71 | extern int mac_ogg_stream_packetin(ogg_stream_state *os, ogg_packet *op); | ||
72 | extern int mac_ogg_stream_init(ogg_stream_state *os,int serialno); | ||
73 | extern int mac_ogg_stream_flush(ogg_stream_state *os, ogg_page *og); | ||
74 | extern int mac_ogg_stream_pageout(ogg_stream_state *os, ogg_page *og); | ||
75 | extern int mac_ogg_page_eos(ogg_page *og); | ||
76 | extern int mac_ogg_stream_clear(ogg_stream_state *os); | ||
77 | |||
78 | |||
79 | #ifdef __cplusplus | ||
80 | } | ||
81 | #endif | ||