Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

FileVorbis Class Reference

#include <filevorbis.h>

Inheritance diagram for FileVorbis:

FileBase List of all members.

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)

Public Attributes

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 15 of file filevorbis.C.

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

FileVorbis::~FileVorbis  ) 
 

Definition at line 23 of file filevorbis.C.

References close_file().


Member Function Documentation

int FileVorbis::check_sig Asset asset  )  [static]
 

Definition at line 44 of file filevorbis.C.

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

Referenced by File::open_file().

int FileVorbis::close_file  )  [virtual]
 

Reimplemented from FileBase.

Definition at line 221 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().

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

Definition at line 28 of file filevorbis.C.

References VorbisConfigAudio::create_objects().

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

Reimplemented from FileBase.

Definition at line 91 of file filevorbis.C.

References _, FileBase::asset, Asset::audio_data, Asset::audio_length, Asset::channels, fd, fopen(), fwrite(), og, os, Asset::path, Asset::sample_rate, vb, vc, vd, vf, vi, Asset::vorbis_bitrate, Asset::vorbis_max_bitrate, Asset::vorbis_min_bitrate, and Asset::vorbis_vbr.

int FileVorbis::prefer_samples_float  )  [virtual]
 

Reimplemented from FileBase.

Definition at line 399 of file filevorbis.C.

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

Reimplemented from FileBase.

Definition at line 287 of file filevorbis.C.

References FileBase::asset, Asset::channels, File::current_channel, File::current_sample, fd, FileBase::file, HISTORY_MAX, history_size, history_start, pcm_history, FileList::temp, and vf.

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

Reimplemented from FileBase.

Definition at line 404 of file filevorbis.C.

References FileBase::asset, Asset::channels, File::current_channel, File::current_sample, fd, FileBase::file, HISTORY_MAX, history_size, history_start, pcm_history_float, FileList::temp, and vf.

int FileVorbis::reset_parameters_derived  )  [virtual]
 

Reimplemented from FileBase.

Definition at line 80 of file filevorbis.C.

References fd, pcm_history, pcm_history_float, and vf.

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

Reimplemented from FileBase.

Definition at line 265 of file filevorbis.C.

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


Member Data Documentation

FILE* FileVorbis::fd
 

Definition at line 40 of file filevorbis.h.

Referenced by check_sig(), close_file(), open_file(), read_samples(), read_samples_float(), reset_parameters_derived(), and write_samples().

int FileVorbis::history_size
 

Definition at line 44 of file filevorbis.h.

Referenced by read_samples(), and read_samples_float().

int FileVorbis::history_start
 

Definition at line 45 of file filevorbis.h.

Referenced by read_samples(), and read_samples_float().

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.

ogg_stream_state FileVorbis::os
 

Definition at line 52 of file filevorbis.h.

Referenced by close_file(), and open_file().

double** FileVorbis::pcm_history
 

Definition at line 41 of file filevorbis.h.

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

float** FileVorbis::pcm_history_float
 

Definition at line 42 of file filevorbis.h.

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

vorbis_block FileVorbis::vb
 

Definition at line 51 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().

OggVorbis_File FileVorbis::vf
 

Definition at line 39 of file filevorbis.h.

Referenced by check_sig(), close_file(), open_file(), read_samples(), read_samples_float(), and reset_parameters_derived().

vorbis_info FileVorbis::vi
 

Definition at line 48 of file filevorbis.h.

Referenced by close_file(), and open_file().


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:39:15 2006 for Cinelerra-svn by  doxygen 1.4.4