WriteMusicStream(id, sample_id)
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.