Logo Search packages:      
Sourcecode: ecasound version File versions  Download package

Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes


#include <audioio-flac.h>

Inheritance diagram for FLAC_FORKED_INTERFACE:
Inheritance graph
Collaboration diagram for FLAC_FORKED_INTERFACE:
Collaboration graph

List of all members.

Public Types

typedef string parameter_t
Public type definitions and constants
enum  Io_mode { io_read = 1, io_write = 2, io_readwrite = 4 }
Public type definitions and constants
enum  Sample_format {
  sfmt_none, sfmt_u8, sfmt_s8, sfmt_s16,
  sfmt_s16_le, sfmt_s16_be, sfmt_s24, sfmt_s24_le,
  sfmt_s24_be, sfmt_s32, sfmt_s32_le, sfmt_s32_be,
  sfmt_f32, sfmt_f32_le, sfmt_f32_be, sfmt_f64,
  sfmt_f64_le, sfmt_f64_be
enum  Sample_endianess { se_native, se_big, se_little }
enum  Sample_coding { sc_signed, sc_unsigned, sc_float }

Public Member Functions

virtual long int buffersize (void) const
virtual FLAC_FORKED_INTERFACEclone (void) const
virtual void close (void)
virtual std::string description (void) const
virtual bool finished (void) const
 FLAC_FORKED_INTERFACE (const std::string &name="")
virtual std::string get_parameter (int param) const
std::string get_parameter_name (int id) const
virtual bool locked_audio_format (void) const
virtual std::string name (void) const
virtual FLAC_FORKED_INTERFACEnew_expr (void) const
int number_of_params (void) const
virtual void open (void) throw (AUDIO_IO::SETUP_ERROR &)
virtual std::string parameter_names (void) const
virtual void read_buffer (SAMPLE_BUFFER *sbuf)
virtual long int read_samples (void *target_buffer, long int samples)
virtual void set_buffersize (long int samples)
virtual void set_parameter (int param, std::string value)
virtual void start_io (void)
virtual void stop_io (void)
virtual int supported_io_modes (void) const
virtual bool supports_seeking (void) const
virtual bool variable_params (void) const
virtual void write_buffer (SAMPLE_BUFFER *sbuf)
virtual void write_samples (void *target_buffer, long int samples)
Public functions for handling object managers
virtual AUDIO_IO_MANAGERcreate_object_manager (void) const
Attribute functions
virtual bool supports_nonblocking_mode (void) const
virtual bool finite_length_stream (void) const

For setting and getting configuration parameters.

int io_mode (void) const
const string & label (void) const
string format_info (void) const
void set_io_mode (int mode)
void set_label (const string &id_label)
void toggle_nonblocking_mode (bool value)
virtual void set_parameter (int param, string value)
Runtime information
virtual int poll_descriptor (void) const
virtual long int samples_available (void) const
bool is_open (void) const
virtual bool nonblocking_mode (void) const
virtual bool readable (void) const
virtual bool writable (void) const
virtual string status (void) const
ECA_AUDIO_TIME length (void) const
ECA_AUDIO_TIME position (void) const
Functions overridden and reimplemented from
SAMPLE_SPECS::sample_rate_t samples_per_second (void) const
virtual void set_samples_per_second (SAMPLE_SPECS::sample_rate_t v)
virtual void set_audio_format (const ECA_AUDIO_FORMAT &f_str)
Functions implemented from ECA_AUDIO_POSITION
virtual bool supports_seeking_sample_accurate (void) const
virtual SAMPLE_SPECS::sample_pos_t seek_position (SAMPLE_SPECS::sample_pos_t pos)
Public functions for getting audio format information
int frame_size (void) const
int sample_size (void) const
int bits (void) const
Sample_format sample_format (void) const
Sample_coding sample_coding (void) const
Sample_endianess sample_endianess (void) const
long int bytes_per_second (void) const
SAMPLE_SPECS::channel_t channels (void) const
bool interleaved_channels (void) const
ECA_AUDIO_FORMAT audio_format (void) const
std::string format_string (void) const
Public virtual functions for setting audio format information
virtual void toggle_interleaved_channels (bool v)
Public functions for setting audio format information
void set_sample_format_string (const std::string &f_str) throw (ECA_ERROR&)
void set_sample_coding (Sample_coding v)
void set_sample_endianess (Sample_endianess v)
Public functions for getting length information
SAMPLE_SPECS::sample_pos_t length_in_samples (void) const
int length_in_seconds (void) const
double length_in_seconds_exact (void) const
bool length_set (void) const
Public functions for getting position information
SAMPLE_SPECS::sample_pos_t position_in_samples (void) const
int position_in_seconds (void) const
double position_in_seconds_exact (void) const
Public functions for setting position (with action)
void seek_position_in_samples (SAMPLE_SPECS::sample_pos_t pos_in_samples)
void seek_position_in_samples_advance (SAMPLE_SPECS::sample_pos_t pos_in_samples)
void seek_position_in_seconds (double pos_in_seconds)
void seek_first (void)
void seek_last (void)
Public utility functions
bool out_position (void) const

Static Public Member Functions

static void set_input_cmd (const std::string &value)
static void set_output_cmd (const std::string &value)

Protected Member Functions

bool child_fork_succeeded (void) const
void clean_child (bool force=false)
virtual void do_set_position_in_samples (SAMPLE_SPECS::sample_pos_t pos)
virtual bool do_supports_seeking (void) const
int file_descriptor (void) const
void fork_child_for_read (void)
void fork_child_for_write (void)
const std::string & fork_command (void) const
int pid_of_child (void) const
void set_fork_bits (int bits)
void set_fork_channels (int channels)
void set_fork_command (const std::string &cmd)
void set_fork_file_name (const std::string &filename)
void set_fork_pipe_name (void)
void set_fork_sample_rate (long int sample_rate)
bool wait_for_child (void) const
Functions provided for subclasses.
void length (const ECA_AUDIO_TIME &v)
void position (const ECA_AUDIO_TIME &v)
std::string parameter_get_to_string (int param) const
std::string parameter_set_to_string (int param, std::string value) const
Protected functions for setting length
void set_length_in_samples (SAMPLE_SPECS::sample_pos_t pos)
void set_length_in_seconds (int pos_in_seconds)
void set_length_in_seconds (double pos_in_seconds)
void extend_position (void)
Protected functions for setting position (without action)
void set_position_in_samples (SAMPLE_SPECS::sample_pos_t pos)
void set_position_in_seconds (int pos_in_seconds)
void set_position_in_seconds (double pos_in_seconds)
void change_position_in_samples (SAMPLE_SPECS::sample_pos_t pos)
void change_position_in_seconds (double pos_in_seconds)

Private Member Functions

void fork_input_process (void)
void fork_output_process (void)

Private Attributes

long int bytes_rep
FILE * f1_rep
int filedes_rep
bool finished_rep
bool triggered_rep

Static Private Attributes

static std::string default_input_cmd = "flac -d -c %f"
static std::string default_output_cmd = "flac -o %f -f --force-raw-format --channels=%c --bps=%b --sample-rate=%s --sign=%I --endian=%E -"

Reimplemented functions from ECA_AUDIO_FORMAT

virtual void set_channels (SAMPLE_SPECS::channel_t v)
virtual void set_sample_format (Sample_format v) throw (ECA_ERROR&)
void reserve_buffer_space (long int bytes)
unsigned char * get_iobuf (void) const
size_t get_iobuf_size (void) const

Detailed Description

Interface to FLAC decoders and encoders using UNIX pipe i/o.

Kai Vehmanen

Definition at line 14 of file audioio-flac.h.

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

Generated by  Doxygen 1.6.0   Back to index