/usr/include/bse/gslvorbis-enc.h is in libbse-dev 0.7.4-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | /* GSL - Generic Sound Layer
* Copyright (C) 2001, 2003 Tim Janik
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* A copy of the GNU Lesser General Public License should ship along
* with this library; if not, see http://www.gnu.org/copyleft/.
*/
#ifndef __GSL_VORBIS_ENC_H__
#define __GSL_VORBIS_ENC_H__
#include <bse/gslcommon.h>
G_BEGIN_DECLS
/* --- typedefs & enums --- */
typedef struct _GslVorbisEncoder GslVorbisEncoder;
/* rough quality to bitrate mappings at 44.1kHz mono:
* -1) 32kBit 2) 70kBit 5) 96kBit 8) 140kBit
* 0) 48kBit 3) 80kBit 6) 110kBit 9) 160kBit
* 1) 60kBit 4) 86kBit 7) 120kBit 10) 240kBit
* oggenc defaults to a quality setting of 3.0
*/
/* --- encoder API --- */
GslVorbisEncoder* gsl_vorbis_encoder_new (void);
/* pre encoding */
void gsl_vorbis_encoder_add_comment (GslVorbisEncoder *self,
const gchar *utf8_comment);
void gsl_vorbis_encoder_add_named_comment (GslVorbisEncoder *self,
const gchar *ascii_tag_name,
const gchar *utf8_comment);
void gsl_vorbis_encoder_add_lcomment (GslVorbisEncoder *self,
const gchar *latin1_comment);
void gsl_vorbis_encoder_add_named_lcomment (GslVorbisEncoder *self,
const gchar *ascii_tag_name,
const gchar *latin1_comment);
void gsl_vorbis_encoder_set_quality (GslVorbisEncoder *self,
gfloat quality); /* -1..10 */
void gsl_vorbis_encoder_set_bitrate (GslVorbisEncoder *self,
guint nominal_bps);
void gsl_vorbis_encoder_set_n_channels (GslVorbisEncoder *self,
guint n_channels);
void gsl_vorbis_encoder_set_sample_freq (GslVorbisEncoder *self,
guint sample_freq);
/* start encoding */
BseErrorType gsl_vorbis_encoder_setup_stream (GslVorbisEncoder *self,
guint serial);
/* write unencoded data (must be channel aligned) */
void gsl_vorbis_encoder_write_pcm (GslVorbisEncoder *self,
guint n_values,
gfloat *values);
/* (optional) incremental load distribution */
gboolean gsl_vorbis_encoder_needs_processing (GslVorbisEncoder *self);
void gsl_vorbis_encoder_process (GslVorbisEncoder *self);
/* finish feeding unencoded data */
void gsl_vorbis_encoder_pcm_done (GslVorbisEncoder *self);
/* retrive encoded data */
guint gsl_vorbis_encoder_read_ogg (GslVorbisEncoder *self,
guint n_bytes,
guint8 *bytes);
/* test for end of stream */
gboolean gsl_vorbis_encoder_ogg_eos (GslVorbisEncoder *self);
/* cleanup */
void gsl_vorbis_encoder_destroy (GslVorbisEncoder *self);
/* retrive vendor version string */
gchar* gsl_vorbis_encoder_version (void);
G_END_DECLS
#endif /* __GSL_VORBIS_ENC_H__ */
|