int error = WriteSampleStream(APTR handle, struct SaveSampleCtrl *ctrl);
HWEXT_SAVESAMPLE_STREAM
extension bit has been set. See Extension plugins for details. In that case,
Hollywood will call this function to write more sound data to a sample stream that
has been created by BeginSampleStream().
The sound data to write to the sample stream will be passed in the pointer to a
struct SaveSampleCtrl to this function. See BeginSampleStream for a description of the structure.
WriteSampleStream() will only use the following structure members:
Data:
DataSize:Data buffer in bytes.
Samples:This function has to return 0 if the data could was successfully written or an error code.
struct SaveSampleCtrl containing the sample data