Name
WriteMusicStream -- write sound data to music stream (V11.0)
Synopsis
WriteMusicStream(id, sample_id)
Library
sound

Function
This function can be used to append the sample specified by sample_id to the music stream specified by id. The music stream must have been created by BeginMusicStream(). Note that the sample format must match the format of the music stream that you specified when calling BeginMusicStream(). For example, if you declared that the music stream should use the #STEREO16 sample format in your call to BeginMusicStream(), then all samples that you write to the music stream must also use the #STEREO16 format. The only thing that needn't necessarily be identical is the sampling frequency. WriteMusicStream() won't complain if the sample specified by sample_id uses a different playback frequency than the one specified for the music stream.

Inputs
id
identifier of the music stream to append sample to; must be obtained using BeginMusicStream()
sample_id
identifier of sample to append to music stream
Example
See BeginMusicStream


Show TOC