kwave
18.07.70
|
#include <StreamWriter.h>
Signals | |
void | output (Kwave::SampleArray data) |
![]() | |
void | sigSamplesWritten (sample_index_t) |
void | proceeded () |
![]() | |
void | attributeChanged (const QVariant value) |
Public Member Functions | |
StreamWriter () | |
virtual | ~StreamWriter () Q_DECL_OVERRIDE |
virtual bool | write (const Kwave::SampleArray &buffer, unsigned int &count) Q_DECL_OVERRIDE |
![]() | |
Writer () | |
Writer (Kwave::InsertMode mode, sample_index_t left=0, sample_index_t right=0) | |
virtual | ~Writer () Q_DECL_OVERRIDE |
virtual Writer & | operator<< (const Kwave::SampleArray &samples) |
virtual Writer & | operator<< (const sample_t &sample) |
Writer & | operator<< (Writer &(*modifier)(Writer &)) |
Writer & | operator<< (Kwave::SampleReader &reader) |
bool | flush () |
virtual bool | eof () const |
virtual bool | done () const Q_DECL_OVERRIDE |
sample_index_t | first () const |
sample_index_t | last () const |
sample_index_t | position () const |
Kwave::InsertMode | mode () const |
![]() | |
SampleSink (QObject *parent=Q_NULLPTR) | |
virtual | ~SampleSink () |
![]() | |
StreamObject (QObject *parent=Q_NULLPTR) | |
virtual | ~StreamObject () |
virtual unsigned int | tracks () const |
virtual Kwave::StreamObject * | operator[] (unsigned int track) |
virtual unsigned int | tracksOfPort (const char *port) const |
virtual Kwave::StreamObject * | port (const char *port, unsigned int track) |
virtual unsigned int | blockSize () const |
void | setAttribute (const char *attribute, const QVariant &value) |
Additional Inherited Members | |
![]() | |
void | input (Kwave::SampleArray data) |
![]() | |
static void | setInteractive (bool interactive) |
![]() | |
sample_index_t | m_first |
sample_index_t | m_last |
Kwave::InsertMode | m_mode |
sample_index_t | m_position |
Kwave::SampleArray | m_buffer |
unsigned int | m_buffer_size |
unsigned int | m_buffer_used |
Input stream for transferring samples into a Track.
Definition at line 42 of file StreamWriter.h.
Kwave::StreamWriter::StreamWriter | ( | ) |
Constructor
Definition at line 25 of file StreamWriter.cpp.
|
virtual |
Destructor.
Definition at line 31 of file StreamWriter.cpp.
References Kwave::Writer::m_buffer_used.
|
signal |
emits a block with sine wave data
Referenced by write().
|
virtual |
Flush the content of a buffer. Normally the buffer is the internal intermediate buffer used for single-sample writes. When using block transfers, the internal buffer is bypassed and the written block is passed instead.
buffer | reference to the buffer to be flushed |
count | number of samples in the buffer to be flushed, will be internally set to zero if successful |
Implements Kwave::Writer.
Definition at line 42 of file StreamWriter.cpp.
References output(), Kwave::SampleArray::resize(), and Kwave::SampleArray::size().