FileVorbis Class Reference

#include <filevorbis.h>

Inherits FileBase.

Collaboration diagram for FileVorbis:

Collaboration graph
[legend]

Public Member Functions

 FileVorbis (Asset *asset, File *file)
 ~FileVorbis ()
int reset_parameters_derived ()
int open_file (int rd, int wr)
int close_file ()
int write_samples (double **buffer, int64_t len)
int read_samples (double *buffer, int64_t len)
int read_samples_float (float *buffer, int64_t len)
int prefer_samples_float ()

Static Public Member Functions

static void get_parameters (BC_WindowBase *parent_window, Asset *asset, BC_WindowBase *&format_window, int audio_options, int video_options)
static int check_sig (Asset *asset)

Data Fields

OggVorbis_File vf
FILE * fd
double ** pcm_history
float ** pcm_history_float
int history_size
int history_start
vorbis_info vi
vorbis_comment vc
vorbis_dsp_state vd
vorbis_block vb
ogg_stream_state os
ogg_page og
ogg_packet op

Detailed Description

Definition at line 15 of file filevorbis.h.


Constructor & Destructor Documentation

FileVorbis::FileVorbis ( Asset asset,
File file 
)

Definition at line 16 of file filevorbis.C.

References Asset::byte_order, Asset::format, and FileBase::reset_parameters().

Here is the call graph for this function:

FileVorbis::~FileVorbis (  ) 

Definition at line 24 of file filevorbis.C.

References close_file().

Here is the call graph for this function:


Member Function Documentation

void FileVorbis::get_parameters ( BC_WindowBase parent_window,
Asset asset,
BC_WindowBase *&  format_window,
int  audio_options,
int  video_options 
) [static]

Definition at line 29 of file filevorbis.C.

References VorbisConfigAudio::create_objects(), BC_WindowBase::run_window(), and window.

Here is the call graph for this function:

int FileVorbis::reset_parameters_derived (  )  [virtual]

Reimplemented from FileBase.

Definition at line 81 of file filevorbis.C.

References fd, pcm_history, pcm_history_float, and vf.

int FileVorbis::check_sig ( Asset asset  )  [static]

Definition at line 45 of file filevorbis.C.

References FileList::data, fclose(), fd, fopen(), fread(), fseek(), NULL, Asset::path, and vf.

Referenced by File::open_file().

Here is the call graph for this function:

int FileVorbis::open_file ( int  rd,
int  wr 
) [virtual]

int FileVorbis::close_file (  )  [virtual]

Reimplemented from FileBase.

Definition at line 222 of file filevorbis.C.

References FileBase::asset, Asset::channels, FileBase::close_file(), fclose(), fd, FLUSH_VORBIS, os, pcm_history, pcm_history_float, FileBase::rd, FileBase::reset_parameters(), vb, vc, vd, vf, vi, and FileBase::wr.

Referenced by ~FileVorbis().

Here is the call graph for this function:

int FileVorbis::write_samples ( double **  buffer,
int64_t  len 
) [virtual]

Reimplemented from FileBase.

Definition at line 266 of file filevorbis.C.

References FileBase::asset, Asset::channels, fd, FLUSH_VORBIS, input, output, and vd.

int FileVorbis::read_samples ( double *  buffer,
int64_t  len 
) [virtual]

int FileVorbis::read_samples_float ( float *  buffer,
int64_t  len 
) [virtual]

int FileVorbis::prefer_samples_float (  )  [virtual]

Reimplemented from FileBase.

Definition at line 400 of file filevorbis.C.


Field Documentation

OggVorbis_File FileVorbis::vf

Definition at line 41 of file filevorbis.h.

Referenced by close_file(), read_samples(), and reset_parameters_derived().

Definition at line 42 of file filevorbis.h.

Referenced by close_file(), read_samples_float(), and reset_parameters_derived().

Definition at line 44 of file filevorbis.h.

Referenced by read_samples(), and read_samples_float().

Definition at line 45 of file filevorbis.h.

Referenced by read_samples(), and read_samples_float().

vorbis_info FileVorbis::vi

Definition at line 48 of file filevorbis.h.

Referenced by close_file(), and open_file().

vorbis_comment FileVorbis::vc

Definition at line 49 of file filevorbis.h.

Referenced by close_file(), and open_file().

vorbis_dsp_state FileVorbis::vd

Definition at line 50 of file filevorbis.h.

Referenced by close_file(), open_file(), and write_samples().

vorbis_block FileVorbis::vb

Definition at line 51 of file filevorbis.h.

Referenced by close_file(), and open_file().

ogg_stream_state FileVorbis::os

Definition at line 52 of file filevorbis.h.

Referenced by close_file(), and open_file().

ogg_page FileVorbis::og

Definition at line 53 of file filevorbis.h.

Referenced by open_file().

ogg_packet FileVorbis::op

Definition at line 54 of file filevorbis.h.


The documentation for this class was generated from the following files:

Generated on Mon Apr 28 14:25:48 2008 for Cinelerra by  doxygen 1.5.5