synthclone
0.3.0
|
Utility class that copies Sample data from a SampleInputStream to a SampleOutputStream, emitting SampleCopier::copyProgress events as it goes along. More...
#include <synthclone/samplecopier.h>
Signals | |
void | copyProgress (synthclone::SampleFrameCount framesCopied, synthclone::SampleFrameCount totalFrames) |
Emitted when frames are being copied. More... | |
Public Member Functions | |
SampleCopier (QObject *parent=0) | |
Constructs a new SampleCopier. More... | |
~SampleCopier () | |
Destroys the SampleCopier object. More... | |
SampleFrameCount | copy (SampleInputStream &inputStream, SampleOutputStream &outputStream, SampleFrameCount frames) |
Copies data from a SampleInputStream to a SampleOutputStream. More... | |
Utility class that copies Sample data from a SampleInputStream to a SampleOutputStream, emitting SampleCopier::copyProgress events as it goes along.
|
explicit |
Constructs a new SampleCopier.
parent | The parent object of the new SampleCopier object. |
synthclone::SampleCopier::~SampleCopier | ( | ) |
Destroys the SampleCopier object.
SampleFrameCount synthclone::SampleCopier::copy | ( | SampleInputStream & | inputStream, |
SampleOutputStream & | outputStream, | ||
SampleFrameCount | frames | ||
) |
Copies data from a SampleInputStream to a SampleOutputStream.
inputStream | The SampleInputStream. |
outputStream | The SampleOutputStream. |
frames | The maximum number of frames to copy. If the end of the SampleInputStream is reached before this amount of frames is copied, then the return value will be different than this parameter. |
|
signal |
Emitted when frames are being copied.
framesCopied | The number of frames copied thus far. |
totalFrames | The maximum amount of frames that will be copied. |