FileSndFile Class Reference

#include <filesndfile.h>

Inherits FileBase.

Collaboration diagram for FileSndFile:

Collaboration graph
[legend]

Public Member Functions

 FileSndFile (Asset *asset, File *file)
 ~FileSndFile ()
int open_file (int rd, int wr)
int close_file ()
int set_audio_position (int64_t sample)
int read_samples (double *buffer, int64_t len)
int write_samples (double **buffer, int64_t len)
void format_to_asset ()
void asset_to_format ()

Static Public Member Functions

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

Data Fields

SNDFILE * fd
SF_INFO fd_config
double * temp_double
int64_t temp_allocated

Detailed Description

Definition at line 18 of file filesndfile.h.


Constructor & Destructor Documentation

FileSndFile::FileSndFile ( Asset asset,
File file 
)

Definition at line 12 of file filesndfile.C.

References fd, fd_config, temp_allocated, and temp_double.

FileSndFile::~FileSndFile (  ) 

Definition at line 21 of file filesndfile.C.

References temp_double.


Member Function Documentation

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

Definition at line 26 of file filesndfile.C.

References fd, fd_config, and Asset::path.

Referenced by File::open_file().

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

Reimplemented from FileBase.

Definition at line 193 of file filesndfile.C.

References FileBase::asset, asset_to_format(), eprintf, fd, fd_config, Asset::format, format_to_asset(), Asset::path, and SET_TRACE.

Here is the call graph for this function:

int FileSndFile::close_file (  )  [virtual]

Reimplemented from FileBase.

Definition at line 235 of file filesndfile.C.

References FileBase::close_file(), fd, and fd_config.

Here is the call graph for this function:

int FileSndFile::set_audio_position ( int64_t  sample  )  [virtual]

Reimplemented from FileBase.

Definition at line 244 of file filesndfile.C.

References eprintf, and fd.

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

Reimplemented from FileBase.

Definition at line 255 of file filesndfile.C.

References FileBase::asset, Asset::channels, File::current_channel, eprintf, fd, FileBase::file, temp_allocated, and temp_double.

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

Reimplemented from FileBase.

Definition at line 297 of file filesndfile.C.

References FileBase::asset, Asset::bits, Asset::channels, CLAMP, fd, temp_allocated, and temp_double.

void FileSndFile::format_to_asset (  ) 

void FileSndFile::asset_to_format (  ) 

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

Definition at line 336 of file filesndfile.C.

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

Referenced by File::get_options().

Here is the call graph for this function:


Field Documentation

SNDFILE* FileSndFile::fd

Definition at line 42 of file filesndfile.h.

Referenced by FileSndFile(), read_samples(), write_samples(), and ~FileSndFile().

Definition at line 43 of file filesndfile.h.

Referenced by FileSndFile(), read_samples(), and write_samples().


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

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