xine-lib 1.2.11
Data Structures | Macros | Typedefs | Functions | Variables
xine_speex_decoder.c File Reference
#include <stdlib.h>
#include <string.h>
#include <xine/xine_internal.h>
#include <xine/audio_out.h>
#include <xine/buffer.h>
#include <ogg/ogg.h>
#include <speex/speex.h>
#include <speex/speex_header.h>
#include <speex/speex_callbacks.h>
#include <speex/speex_stereo.h>
#include "ogg_combined.h"

Data Structures

struct  speex_decoder_s
 

Macros

#define LOG_MODULE   "speex_decoder"
 
#define LOG_VERBOSE
 
#define LOG_BUFFERS   0
 
#define MAX_FRAME_SIZE   2000
 
#define readint(buf, base)
 

Typedefs

typedef struct speex_decoder_s speex_decoder_t
 

Functions

static void speex_reset (audio_decoder_t *this_gen)
 
static void speex_discontinuity (audio_decoder_t *this_gen)
 
static void read_metadata (speex_decoder_t *this, char *comments, int length)
 
static void speex_decode_data (audio_decoder_t *this_gen, buf_element_t *buf)
 
static void speex_dispose (audio_decoder_t *this_gen)
 
static audio_decoder_topen_plugin (audio_decoder_class_t *class_gen, xine_stream_t *stream)
 
void * speex_init_plugin (xine_t *xine, const void *data)
 

Variables

struct {
   char   key [16]
 
   int   xine_metainfo_index
 
speex_comment_keys []
 

Macro Definition Documentation

◆ LOG_BUFFERS

#define LOG_BUFFERS   0

◆ LOG_MODULE

#define LOG_MODULE   "speex_decoder"

◆ LOG_VERBOSE

#define LOG_VERBOSE

◆ MAX_FRAME_SIZE

#define MAX_FRAME_SIZE   2000

◆ readint

#define readint (   buf,
  base 
)
Value:
(((buf[base+3]<<24)&0xff000000)| \
((buf[base+2]<<16)&0xff0000)| \
((buf[base+1]<<8)&0xff00)| \
(buf[base]&0xff))

Typedef Documentation

◆ speex_decoder_t

Function Documentation

◆ open_plugin()

static audio_decoder_t * open_plugin ( audio_decoder_class_t class_gen,
xine_stream_t stream 
)
static

◆ read_metadata()

static void read_metadata ( speex_decoder_t this,
char *  comments,
int  length 
)
static

◆ speex_decode_data()

static void speex_decode_data ( audio_decoder_t this_gen,
buf_element_t buf 
)
static

◆ speex_discontinuity()

static void speex_discontinuity ( audio_decoder_t this_gen)
static

Referenced by open_plugin().

◆ speex_dispose()

static void speex_dispose ( audio_decoder_t this_gen)
static

References bits.

Referenced by open_plugin().

◆ speex_init_plugin()

void * speex_init_plugin ( xine_t xine,
const void *  data 
)

◆ speex_reset()

static void speex_reset ( audio_decoder_t this_gen)
static

References bits.

Referenced by open_plugin().

Variable Documentation

◆ key

char key[16]

◆ 

const struct { ... } speex_comment_keys[]
Initial value:
= {
{"ARTIST=", XINE_META_INFO_ARTIST},
{"ALBUM=", XINE_META_INFO_ALBUM},
{"TITLE=", XINE_META_INFO_TITLE},
{"GENRE=", XINE_META_INFO_GENRE},
{"DESCRIPTION=", XINE_META_INFO_COMMENT},
}
#define XINE_META_INFO_ARTIST
Definition: xine.h:1064
#define XINE_META_INFO_COMMENT
Definition: xine.h:1063
#define XINE_META_INFO_ALBUM
Definition: xine.h:1066
#define XINE_META_INFO_TITLE
Definition: xine.h:1062
#define XINE_META_INFO_YEAR
Definition: xine.h:1067
#define XINE_META_INFO_GENRE
Definition: xine.h:1065

Referenced by read_metadata().

◆ xine_metainfo_index

int xine_metainfo_index

Referenced by read_metadata().