20#ifndef __SYNTHCLONE_SAMPLEOUTPUTSTREAM_H__
21#define __SYNTHCLONE_SAMPLEOUTPUTSTREAM_H__
Used to write sample data to a sample file.
Definition: sampleoutputstream.h:34
~SampleOutputStream()
Destroys the stream.
SampleOutputStream(Sample &sample, SampleRate sampleRate, SampleChannelCount channels, Type type, SubType subType, EndianType endianType=ENDIANTYPE_FILE, QObject *parent=0)
Creates a sample output stream object.
void write(const float *buffer, SampleFrameCount frames)
Writes 'frames' data to the stream.
SampleOutputStream(Sample &sample, SampleRate sampleRate, SampleChannelCount channels, QObject *parent=0)
Creates a sample output stream object that writes a .wav file with float values.
Base class for reading/writing Sample files.
Definition: samplestream.h:38
SubType
Contains format sub-types supported by sample streams.
Definition: samplestream.h:70
Type
Contains format types supported by sample streams.
Definition: samplestream.h:107
EndianType
Contains format endian types supported by sample streams.
Definition: samplestream.h:48
@ ENDIANTYPE_FILE
Definition: samplestream.h:49
Contains sample data.
Definition: sample.h:37
Definition: component.h:26
quint32 SampleRate
Holds a sample rate.
Definition: types.h:96
quint16 SampleChannelCount
Holds a sample channel count.
Definition: types.h:72
qint64 SampleFrameCount
Holds a count of sample frames, or an offset with sample frames.
Definition: types.h:90