SGSetSoundRecordChunkSize
During record operations, the sequence grabber component and its sound channels work with groups of sound samples. These groups are referred to as chunks. By default, each chunk contains two seconds of sound data. Smaller chunks use less memory.
pascal ComponentResult SGSetSoundRecordChunkSize (SGChannel c,
long seconds);
c
- Identifies the channel connection for this operation.
seconds
- Specifies the number of seconds of sound data your sound channel component is to work with at a time. This parameter is set to a negative fixed-point number to specify a fraction of a second. For example, to set the duration to half a second, -0.5 is passed in.
DESCRIPTION
The sequence grabber component can control the amount of sound data in each chunk by calling the SGSetSoundRecordChunkSize function. The sequence grabber component specifies the number of seconds of sound data your channel is to work with at a time.
SPECIAL CONSIDERATIONS
The SGSetSoundRecordChunkSize function may return a fraction of a second (see the discussion of the seconds parameter above).
RESULT CODES
| paramErr | -50 | Invalid parameter specified |
| cantDoThatInCurrentMode | -9402 | Request invalid in current mode |