BEAST - Free Software Audio Synthesizer and Tracker  0.9.2
gsldatahandle-vorbis.hh
Go to the documentation of this file.
1  // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
2 #ifndef __GSL_DATA_HANDLE_VORBIS_H__
3 #define __GSL_DATA_HANDLE_VORBIS_H__
4 
5 
6 #include <bse/gslcommon.hh>
7 #include <bse/gsldatahandle.hh>
8 
9 G_BEGIN_DECLS
10 
11 /* --- reading vorbis files --- */
12 GslDataHandle* gsl_data_handle_new_ogg_vorbis_muxed (const gchar *file_name,
13  guint lbitstream,
14  gfloat osc_freq);
15 GslDataHandle* gsl_data_handle_new_ogg_vorbis_zoffset (const gchar *file_name,
16  gfloat osc_freq,
17  GslLong byte_offset,
18  GslLong byte_size,
19  guint *n_channelsp,
20  gfloat *mix_freq_p);
21 
22 /* --- writing vorbis files --- */
23 typedef struct GslVorbis1Handle GslVorbis1Handle;
24 GslVorbis1Handle* gsl_vorbis1_handle_new (GslDataHandle *ogg_vorbis_handle,
25  guint serialno);
26 gint gsl_vorbis1_handle_read (GslVorbis1Handle *vorbis1, /* returns -errno || length */
27  guint blength,
28  guint8 *buffer);
29 void gsl_vorbis1_handle_destroy (GslVorbis1Handle *vorbis1);
30 /* gsl_vorbis1_handle_put_wstore() calls gsl_vorbis1_handle_destroy()
31  * on vorbis1 when sfi_wstore_destroy (wstore) is executed.
32  */
33 void gsl_vorbis1_handle_put_wstore (GslVorbis1Handle *vorbis1,
34  SfiWStore *wstore);
35 guint gsl_vorbis_make_serialno (void);
36 
37 G_END_DECLS
38 
39 #endif /* __GSL_DATA_HANDLE_VORBIS_H__ */
Definition: sfistore.hh:14