FlushMusicBuffer(id)
FlushMusicBuffer()
can
be used to empty all music buffers and refill them with new data. This can
be useful if you need to immediately update the audio data that is being played,
for example because the user has seeked the music stream to a new position.
After the call to FlushMusicBuffer()
, Hollywood will immediately trigger a
FillMusicBuffer
event so that your script gets a chance to refill the audio
buffers after they have been flushed.
By default, there will always be a lag of about 1 second between the call to
FillMusicBuffer() and the time you can hear the
audio data on your sound device. If you call FlushMusicBuffer()
first, the
data can be sent to the sound device with a lower latency.
See FillMusicBuffer for details.