File: format_ogg.h

package info (click to toggle)
mixxx 2.3.3~dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 152,296 kB
  • sloc: cpp: 242,036; xml: 192,631; javascript: 123,601; ansic: 28,424; sh: 4,564; python: 3,558; makefile: 382; sql: 32
file content (59 lines) | stat: -rw-r--r-- 1,705 bytes parent folder | download | duplicates (4)
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
/* -*- c-basic-offset: 8; -*- */
/* format_ogg.h: Internal shout interface to Ogg codec handlers
 * $Id$
 *
 *  Copyright (C) 2004 the Icecast team <team@icecast.org>
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Library General Public
 *  License as published by the Free Software Foundation; either
 *  version 2 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
 *  Library General Public License for more details.
 *
 *  You should have received a copy of the GNU Library General Public
 *  License along with this library; if not, write to the Free
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifndef __LIBSHOUT_FORMAT_OGG_H__
#define __LIBSHOUT_FORMAT_OGG_H__

#ifdef HAVE_CONFIG_H
#   include <config.h>
#endif

#include <stdlib.h>

#include <ogg/ogg.h>

typedef struct _ogg_codec_tag {
    ogg_stream_state os;

    unsigned int    headers;
    uint64_t        senttime;

    void    *codec_data;
    int     (*read_page)(struct _ogg_codec_tag *codec, ogg_page *page);
    void    (*free_data)(void *codec_data);

    struct  _ogg_codec_tag *next;
} ogg_codec_t;

/* codec hooks */
int _shout_open_vorbis(ogg_codec_t *codec, ogg_page *page);

#ifdef HAVE_THEORA
int _shout_open_theora(ogg_codec_t *codec, ogg_page *page);
#endif

#ifdef HAVE_SPEEX
int _shout_open_speex(ogg_codec_t *codec, ogg_page *page);
#endif

int _shout_open_opus(ogg_codec_t *codec, ogg_page *page);

#endif