xine-lib 1.2.13-20230125hg15249
Data Structures | Macros | Functions
demux_voc.c File Reference
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <xine/xine_internal.h>
#include <xine/xineutils.h>
#include <xine/demux.h>
#include <xine/buffer.h>
#include "bswap.h"
#include "group_audio.h"

Data Structures

struct  demux_voc_t
 

Macros

#define PCM_BLOCK_ALIGN   1024
 
#define VOC_HEADER_SIZE   0x1A
 
#define VOC_SIGNATURE   "Creative Voice File\x1A"
 
#define BLOCK_PREAMBLE_SIZE   4
 

Functions

static int probe_voc_file (input_plugin_t *input, int *first_block_offset)
 
static int open_voc_file (demux_voc_t *this, int first_block_offset)
 
static int demux_voc_send_chunk (demux_plugin_t *this_gen)
 
static void demux_voc_send_headers (demux_plugin_t *this_gen)
 
static int demux_voc_seek (demux_plugin_t *this_gen, off_t start_pos, int start_time, int playing)
 
static int demux_voc_get_status (demux_plugin_t *this_gen)
 
static int demux_voc_get_stream_length (demux_plugin_t *this_gen)
 
static uint32_t demux_voc_get_capabilities (demux_plugin_t *this_gen)
 
static int demux_voc_get_optional_data (demux_plugin_t *this_gen, void *data, int data_type)
 
static demux_plugin_topen_plugin (demux_class_t *class_gen, xine_stream_t *stream, input_plugin_t *input)
 
void * demux_voc_init_plugin (xine_t *xine, const void *data)
 

Macro Definition Documentation

◆ BLOCK_PREAMBLE_SIZE

#define BLOCK_PREAMBLE_SIZE   4

Referenced by open_voc_file().

◆ PCM_BLOCK_ALIGN

#define PCM_BLOCK_ALIGN   1024

◆ VOC_HEADER_SIZE

#define VOC_HEADER_SIZE   0x1A

Referenced by probe_voc_file().

◆ VOC_SIGNATURE

#define VOC_SIGNATURE   "Creative Voice File\x1A"

Referenced by probe_voc_file().

Function Documentation

◆ demux_voc_get_capabilities()

static uint32_t demux_voc_get_capabilities ( demux_plugin_t * this_gen)
static

References DEMUX_CAP_NOCAP.

Referenced by open_plugin().

◆ demux_voc_get_optional_data()

static int demux_voc_get_optional_data ( demux_plugin_t * this_gen,
void * data,
int data_type )
static

References DEMUX_OPTIONAL_UNSUPPORTED.

Referenced by open_plugin().

◆ demux_voc_get_status()

static int demux_voc_get_status ( demux_plugin_t * this_gen)
static

Referenced by open_plugin().

◆ demux_voc_get_stream_length()

static int demux_voc_get_stream_length ( demux_plugin_t * this_gen)
static

Referenced by open_plugin().

◆ demux_voc_init_plugin()

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

◆ demux_voc_seek()

static int demux_voc_seek ( demux_plugin_t * this_gen,
off_t start_pos,
int start_time,
int playing )
static

◆ demux_voc_send_chunk()

static int demux_voc_send_chunk ( demux_plugin_t * this_gen)
static

◆ demux_voc_send_headers()

static void demux_voc_send_headers ( demux_plugin_t * this_gen)
static

◆ open_plugin()

static demux_plugin_t * open_plugin ( demux_class_t * class_gen,
xine_stream_t * stream,
input_plugin_t * input )
static

◆ open_voc_file()

static int open_voc_file ( demux_voc_t * this,
int first_block_offset )
static

◆ probe_voc_file()

static int probe_voc_file ( input_plugin_t * input,
int * first_block_offset )
static