~ubuntu-branches/debian/sid/vorbis-tools/sid

« back to all changes in this revision

Viewing changes to oggenc/flac.h

  • Committer: Bazaar Package Importer
  • Author(s): Jesus Climent
  • Date: 2005-04-10 09:22:24 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050410092224-xtukpa3qghghhjje
Tags: 1.0.1-1.3
* Authorized NMU.
* Modified alsa to mention alsa09 (although the device might be nowadays
  alsa, back, since alsa1.0 has been already released). (Closes: #258286)
* Modified the manpage/help message for vorbiscomment to make it a bit more
  userfiendly: Closes: #252531.
* Added oggdec to the long description field, so that it triggers apt-cache
  searches: Closes: #274894.
* Typos in manpages: Closes: #302150.
* Escaped dashes in manpage: Closes: #264365.
* Quiet option is actually with -Q, not -q (Closes: #211289) Reported
  upstream but patched for Debian.
* Change input.wav with inputfile, since we accept flac-formated files:
  Closes: #262509.
* Translation bits:
  * Updated translation hu.po: Closes: #272037.
  * French translation correction: Encodage -> Codage (Closes: #248431).
  * debian/rules: remove .gmo's to avoid clash with uploaded tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#ifndef __FLAC_H
 
3
#define __FLAC_H
 
4
 
 
5
#include "encode.h"
 
6
#include "audio.h"
 
7
#include <stdio.h>
 
8
#include "easyflac.h"
 
9
 
 
10
typedef struct {
 
11
        EasyFLAC__StreamDecoder *decoder;
 
12
        short channels;
 
13
        int rate;
 
14
        long totalsamples; /* per channel, of course */
 
15
 
 
16
        FLAC__StreamMetadata *comments;
 
17
 
 
18
        FILE *in;  /* Cache the FILE pointer so the FLAC read callback can use it */
 
19
        int eos;  /* End of stream read */
 
20
 
 
21
 
 
22
        /* Buffer for decoded audio */
 
23
        float **buf;  /* channels by buf_len array */
 
24
        int buf_len;
 
25
        int buf_start; /* Offset to start of audio data */
 
26
        int buf_fill; /* Number of bytes of audio data in buffer */
 
27
 
 
28
        /* Buffer for input data we already read in the id phase */
 
29
        unsigned char *oldbuf;
 
30
        int oldbuf_len;
 
31
        int oldbuf_start;
 
32
} flacfile;
 
33
 
 
34
 
 
35
int flac_id(unsigned char *buf, int len);
 
36
int oggflac_id(unsigned char *buf, int len);
 
37
int flac_open(FILE *in, oe_enc_opt *opt, unsigned char *buf, int buflen);
 
38
void flac_close(void *);
 
39
 
 
40
long flac_read(void *, float **buffer, int samples);
 
41
 
 
42
#endif /* __FLAC_H */
 
43