|
Packit |
eed494 |
/* -*- c-basic-offset: 8; -*- */
|
|
Packit |
eed494 |
/* shout_ogg.h: Internal shout interface to Ogg codec handlers
|
|
Packit |
eed494 |
* $Id: shout_ogg.h 10533 2005-12-04 02:49:34Z brendan $
|
|
Packit |
eed494 |
*
|
|
Packit |
eed494 |
* Copyright (C) 2004 the Icecast team <team@icecast.org>
|
|
Packit |
eed494 |
*
|
|
Packit |
eed494 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
eed494 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
eed494 |
* License as published by the Free Software Foundation; either
|
|
Packit |
eed494 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
eed494 |
*
|
|
Packit |
eed494 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
eed494 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
eed494 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
eed494 |
* Library General Public License for more details.
|
|
Packit |
eed494 |
*
|
|
Packit |
eed494 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
eed494 |
* License along with this library; if not, write to the Free
|
|
Packit |
eed494 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
Packit |
eed494 |
*/
|
|
Packit |
eed494 |
|
|
Packit |
eed494 |
#ifndef __LIBSHOUT_SHOUT_OGG_H__
|
|
Packit |
eed494 |
#define __LIBSHOUT_SHOUT_OGG_H__
|
|
Packit |
eed494 |
|
|
Packit |
eed494 |
#ifdef HAVE_CONFIG_H
|
|
Packit |
eed494 |
# include <config.h>
|
|
Packit |
eed494 |
#endif
|
|
Packit |
eed494 |
|
|
Packit |
eed494 |
#include <stdlib.h>
|
|
Packit |
eed494 |
|
|
Packit |
eed494 |
#include <ogg/ogg.h>
|
|
Packit |
eed494 |
|
|
Packit |
eed494 |
typedef struct _ogg_codec_tag {
|
|
Packit |
eed494 |
ogg_stream_state os;
|
|
Packit |
eed494 |
|
|
Packit |
eed494 |
unsigned int headers;
|
|
Packit |
eed494 |
uint64_t senttime;
|
|
Packit |
eed494 |
|
|
Packit |
eed494 |
void *codec_data;
|
|
Packit |
eed494 |
int (*read_page)(struct _ogg_codec_tag *codec, ogg_page *page);
|
|
Packit |
eed494 |
void (*free_data)(void *codec_data);
|
|
Packit |
eed494 |
|
|
Packit |
eed494 |
struct _ogg_codec_tag *next;
|
|
Packit |
eed494 |
} ogg_codec_t;
|
|
Packit |
eed494 |
|
|
Packit |
eed494 |
/* codec hooks */
|
|
Packit |
eed494 |
int _shout_open_vorbis(ogg_codec_t *codec, ogg_page *page);
|
|
Packit |
eed494 |
#ifdef HAVE_THEORA
|
|
Packit |
eed494 |
int _shout_open_theora(ogg_codec_t *codec, ogg_page *page);
|
|
Packit |
eed494 |
#endif
|
|
Packit |
eed494 |
#ifdef HAVE_SPEEX
|
|
Packit |
eed494 |
int _shout_open_speex(ogg_codec_t *codec, ogg_page *page);
|
|
Packit |
eed494 |
#endif
|
|
Packit |
eed494 |
|
|
Packit |
eed494 |
#endif
|