FusionSound Reference Manual
IFusionSoundStream   Wait

Wait for a specified amount of free ring buffer space.

Wait (
  IFusionSoundStream   * thiz,
  int   length
);

This method blocks until there's free space of at least the specified length (number of samples per channel).

Specifying a length of zero waits until playback has finished.