BEAST/BSE - Better Audio System and Sound Engine
0.8.2
|
00001 // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html 00002 #ifndef __GSL_DATA_HANDLE_VORBIS_H__ 00003 #define __GSL_DATA_HANDLE_VORBIS_H__ 00004 00005 00006 #include <bse/gslcommon.hh> 00007 #include <bse/gsldatahandle.hh> 00008 00009 G_BEGIN_DECLS 00010 00011 /* --- reading vorbis files --- */ 00012 GslDataHandle* gsl_data_handle_new_ogg_vorbis_muxed (const gchar *file_name, 00013 guint lbitstream, 00014 gfloat osc_freq); 00015 GslDataHandle* gsl_data_handle_new_ogg_vorbis_zoffset (const gchar *file_name, 00016 gfloat osc_freq, 00017 GslLong byte_offset, 00018 GslLong byte_size, 00019 guint *n_channelsp, 00020 gfloat *mix_freq_p); 00021 00022 /* --- writing vorbis files --- */ 00023 typedef struct GslVorbis1Handle GslVorbis1Handle; 00024 GslVorbis1Handle* gsl_vorbis1_handle_new (GslDataHandle *ogg_vorbis_handle, 00025 guint serialno); 00026 gint gsl_vorbis1_handle_read (GslVorbis1Handle *vorbis1, /* returns -errno || length */ 00027 guint blength, 00028 guint8 *buffer); 00029 void gsl_vorbis1_handle_destroy (GslVorbis1Handle *vorbis1); 00030 /* gsl_vorbis1_handle_put_wstore() calls gsl_vorbis1_handle_destroy() 00031 * on vorbis1 when sfi_wstore_destroy (wstore) is executed. 00032 */ 00033 void gsl_vorbis1_handle_put_wstore (GslVorbis1Handle *vorbis1, 00034 SfiWStore *wstore); 00035 guint gsl_vorbis_make_serialno (void); 00036 00037 G_END_DECLS 00038 00039 #endif /* __GSL_DATA_HANDLE_VORBIS_H__ */