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

FileSndFile Class Reference

#include <filesndfile.h>

Inheritance diagram for FileSndFile:

FileBase List of all members.

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)

Public Attributes

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

void FileSndFile::asset_to_format  ) 
 

Definition at line 41 of file filesndfile.C.

References FileBase::asset, Asset::bits, Asset::byte_order, Asset::channels, fd_config, Asset::format, Asset::sample_rate, and Asset::signed_.

Referenced by open_file().

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::close_file  )  [virtual]
 

Reimplemented from FileBase.

Definition at line 230 of file filesndfile.C.

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

void FileSndFile::format_to_asset  ) 
 

Definition at line 112 of file filesndfile.C.

References FileBase::asset, Asset::audio_data, Asset::audio_length, Asset::bits, Asset::byte_order, Asset::channels, fd_config, Asset::format, Asset::header, Asset::sample_rate, and Asset::signed_.

Referenced by open_file().

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

Definition at line 332 of file filesndfile.C.

References SndFileConfig::create_objects().

Referenced by File::get_options().

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

Reimplemented from FileBase.

Definition at line 190 of file filesndfile.C.

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

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

Reimplemented from FileBase.

Definition at line 251 of file filesndfile.C.

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

int FileSndFile::set_audio_position int64_t  sample  )  [virtual]
 

Reimplemented from FileBase.

Definition at line 239 of file filesndfile.C.

References fd.

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

Reimplemented from FileBase.

Definition at line 293 of file filesndfile.C.

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


Member Data Documentation

SNDFILE* FileSndFile::fd
 

Definition at line 39 of file filesndfile.h.

Referenced by check_sig(), close_file(), FileSndFile(), open_file(), read_samples(), set_audio_position(), and write_samples().

SF_INFO FileSndFile::fd_config
 

Definition at line 40 of file filesndfile.h.

Referenced by asset_to_format(), check_sig(), close_file(), FileSndFile(), format_to_asset(), and open_file().

int64_t FileSndFile::temp_allocated
 

Definition at line 43 of file filesndfile.h.

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

double* FileSndFile::temp_double
 

Definition at line 42 of file filesndfile.h.

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


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