00001 00034 #ifdef __cplusplus 00035 extern "C" { 00036 #endif 00037 00038 #include "ogg/ogg.h" 00039 #include "vorbis/codec.h" 00040 #include "vorbis/vorbisenc.h" 00041 00042 extern int mac_vorbis_analysis(vorbis_block *vb,ogg_packet *op); 00043 00044 extern int mac_vorbis_analysis_headerout(vorbis_dsp_state *v, 00045 vorbis_comment *vc, 00046 ogg_packet *op, 00047 ogg_packet *op_comm, 00048 ogg_packet *op_code); 00049 00050 extern int mac_vorbis_analysis_init(vorbis_dsp_state *v,vorbis_info *vi); 00051 00052 extern int mac_vorbis_encode_ctl(vorbis_info *vi,int number,void *arg); 00053 00054 extern int mac_vorbis_encode_setup_init(vorbis_info *vi); 00055 00056 extern int mac_vorbis_encode_setup_managed(vorbis_info *vi, 00057 long channels, 00058 long rate, 00059 00060 long max_bitrate, 00061 long nominal_bitrate, 00062 long min_bitrate); 00063 00064 extern void mac_vorbis_info_init(vorbis_info *vi); 00065 extern void mac_vorbis_info_clear(vorbis_info *vi); 00066 extern void mac_vorbis_comment_init(vorbis_comment *vc); 00067 extern void mac_vorbis_comment_clear(vorbis_comment *vc); 00068 extern int mac_vorbis_block_init(vorbis_dsp_state *v, vorbis_block *vb); 00069 extern int mac_vorbis_block_clear(vorbis_block *vb); 00070 extern void mac_vorbis_dsp_clear(vorbis_dsp_state *v); 00071 extern float **mac_vorbis_analysis_buffer(vorbis_dsp_state *v,int vals); 00072 extern int mac_vorbis_analysis_wrote(vorbis_dsp_state *v,int vals); 00073 extern int mac_vorbis_analysis_blockout(vorbis_dsp_state *v,vorbis_block *vb); 00074 00075 extern int mac_ogg_stream_packetin(ogg_stream_state *os, ogg_packet *op); 00076 extern int mac_ogg_stream_init(ogg_stream_state *os,int serialno); 00077 extern int mac_ogg_stream_flush(ogg_stream_state *os, ogg_page *og); 00078 extern int mac_ogg_stream_pageout(ogg_stream_state *os, ogg_page *og); 00079 extern int mac_ogg_page_eos(ogg_page *og); 00080 extern int mac_ogg_stream_clear(ogg_stream_state *os); 00081 00082 00083 #ifdef __cplusplus 00084 } 00085 #endif