Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
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 /* --- reading vorbis files --- */
10 GslDataHandle* gsl_data_handle_new_ogg_vorbis_muxed (const gchar *file_name,
11  guint lbitstream,
12  gfloat osc_freq);
13 GslDataHandle* gsl_data_handle_new_ogg_vorbis_zoffset (const gchar *file_name,
14  gfloat osc_freq,
15  GslLong byte_offset,
16  GslLong byte_size,
17  guint *n_channelsp,
18  gfloat *mix_freq_p);
19 
20 /* --- writing vorbis files --- */
21 typedef struct GslVorbis1Handle GslVorbis1Handle;
22 GslVorbis1Handle* gsl_vorbis1_handle_new (GslDataHandle *ogg_vorbis_handle,
23  guint serialno);
24 gint gsl_vorbis1_handle_read (GslVorbis1Handle *vorbis1, /* returns -errno || length */
25  guint blength,
26  guint8 *buffer);
27 void gsl_vorbis1_handle_destroy (GslVorbis1Handle *vorbis1);
28 /* gsl_vorbis1_handle_put_wstore() calls gsl_vorbis1_handle_destroy()
29  * on vorbis1 when sfi_wstore_destroy (wstore) is executed.
30  */
31 void gsl_vorbis1_handle_put_wstore (GslVorbis1Handle *vorbis1,
32  SfiWStore *wstore);
33 guint gsl_vorbis_make_serialno (void);
34 
35 #endif /* __GSL_DATA_HANDLE_VORBIS_H__ */
Definition: sfistore.hh:12