Ardour  8.7-15-gadf511264b
AudioGrapher::CmdPipeWriter< T > Class Template Reference

#include <cmdpipe_writer.h>

Inheritance diagram for AudioGrapher::CmdPipeWriter< T >:
[legend]

Public Member Functions

 CmdPipeWriter (ARDOUR::SystemExec *proc, std::string const &path, int tmp_fd=-1, gchar *tmp_file=0)
 
virtual ~CmdPipeWriter ()
 
samplecnt_t get_samples_written () const
 
void reset_samples_written_count ()
 
void close (void)
 
virtual void process (ProcessContext< T > const &c)
 
- Public Member Functions inherited from AudioGrapher::Sink< DefaultSampleType >
virtual ~Sink ()
 
virtual void process (ProcessContext< DefaultSampleType > const &context)=0
 
virtual void process (ProcessContext< DefaultSampleType > &context)
 

Public Attributes

PBD::Signal1< void, std::string > FileWritten
 

Private Member Functions

 CmdPipeWriter (CmdPipeWriter const &other)
 
void encode_complete ()
 

Private Attributes

samplecnt_t samples_written
 
ARDOUR::SystemExec_proc
 
std::string _path
 
std::vector< char > _tmpfile_path_buf
 
int _tmp_fd
 
gchar * _tmp_file
 
PBD::ScopedConnectionList exec_connections
 

Additional Inherited Members

- Public Types inherited from AudioGrapher::FlagDebuggable< L >
typedef FlagField::Flag Flag
 
- Protected Member Functions inherited from AudioGrapher::Throwing< L >
 Throwing ()
 
bool throw_level (ThrowLevel level)
 
- Protected Member Functions inherited from AudioGrapher::FlagDebuggable< L >
void add_supported_flag (Flag flag)
 Adds a flag to the set of flags supported. More...
 
template<typename SelfType , typename ContextType >
void check_flags (SelfType &self, ProcessContext< ContextType > context)
 Prints debug output if context contains flags that are not supported by this class. More...
 
- Protected Member Functions inherited from AudioGrapher::Debuggable< DebugNone >
 Debuggable (std::ostream &debug_stream=std::cerr)
 
bool debug_level (DebugLevel level)
 
std::ostream & debug_stream ()
 

Detailed Description

template<typename T = DefaultSampleType>
class AudioGrapher::CmdPipeWriter< T >

Writer for audio files using libsndfile. Only short, int and float are valid template parameters

Definition at line 26 of file cmdpipe_writer.h.

Constructor & Destructor Documentation

◆ CmdPipeWriter() [1/2]

template<typename T = DefaultSampleType>
AudioGrapher::CmdPipeWriter< T >::CmdPipeWriter ( ARDOUR::SystemExec proc,
std::string const &  path,
int  tmp_fd = -1,
gchar *  tmp_file = 0 
)
inline

Definition at line 32 of file cmdpipe_writer.h.

◆ ~CmdPipeWriter()

template<typename T = DefaultSampleType>
virtual AudioGrapher::CmdPipeWriter< T >::~CmdPipeWriter ( )
inlinevirtual

Definition at line 49 of file cmdpipe_writer.h.

◆ CmdPipeWriter() [2/2]

template<typename T = DefaultSampleType>
AudioGrapher::CmdPipeWriter< T >::CmdPipeWriter ( CmdPipeWriter< T > const &  other)
inlineprivate

Definition at line 111 of file cmdpipe_writer.h.

Member Function Documentation

◆ close()

template<typename T = DefaultSampleType>
void AudioGrapher::CmdPipeWriter< T >::close ( void  )
inline

Definition at line 63 of file cmdpipe_writer.h.

◆ encode_complete()

template<typename T = DefaultSampleType>
void AudioGrapher::CmdPipeWriter< T >::encode_complete ( )
inlineprivate

Definition at line 120 of file cmdpipe_writer.h.

◆ get_samples_written()

template<typename T = DefaultSampleType>
samplecnt_t AudioGrapher::CmdPipeWriter< T >::get_samples_written ( ) const
inline

Definition at line 60 of file cmdpipe_writer.h.

◆ process()

template<typename T = DefaultSampleType>
virtual void AudioGrapher::CmdPipeWriter< T >::process ( ProcessContext< T > const &  c)
inlinevirtual

Definition at line 68 of file cmdpipe_writer.h.

◆ reset_samples_written_count()

template<typename T = DefaultSampleType>
void AudioGrapher::CmdPipeWriter< T >::reset_samples_written_count ( )
inline

Definition at line 61 of file cmdpipe_writer.h.

Member Data Documentation

◆ _path

template<typename T = DefaultSampleType>
std::string AudioGrapher::CmdPipeWriter< T >::_path
private

Definition at line 115 of file cmdpipe_writer.h.

◆ _proc

template<typename T = DefaultSampleType>
ARDOUR::SystemExec* AudioGrapher::CmdPipeWriter< T >::_proc
private

Definition at line 114 of file cmdpipe_writer.h.

◆ _tmp_fd

template<typename T = DefaultSampleType>
int AudioGrapher::CmdPipeWriter< T >::_tmp_fd
private

Definition at line 117 of file cmdpipe_writer.h.

◆ _tmp_file

template<typename T = DefaultSampleType>
gchar* AudioGrapher::CmdPipeWriter< T >::_tmp_file
private

Definition at line 118 of file cmdpipe_writer.h.

◆ _tmpfile_path_buf

template<typename T = DefaultSampleType>
std::vector<char> AudioGrapher::CmdPipeWriter< T >::_tmpfile_path_buf
private

Definition at line 116 of file cmdpipe_writer.h.

◆ exec_connections

template<typename T = DefaultSampleType>
PBD::ScopedConnectionList AudioGrapher::CmdPipeWriter< T >::exec_connections
private

Definition at line 129 of file cmdpipe_writer.h.

◆ FileWritten

template<typename T = DefaultSampleType>
PBD::Signal1<void, std::string> AudioGrapher::CmdPipeWriter< T >::FileWritten

Definition at line 108 of file cmdpipe_writer.h.

◆ samples_written

template<typename T = DefaultSampleType>
samplecnt_t AudioGrapher::CmdPipeWriter< T >::samples_written
private

Definition at line 113 of file cmdpipe_writer.h.


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