FMExChannelFMExChannel2DFMExStream → FMExStreamSentence

FMExStreamSentence Class

This class is used to "stitch" multiple FMExStream instances into one continuous and gapless stream. The FMExStream objects used as sentence fragments are actually clones, so the original streams can still be used independently if needed. Sentence fragments can also be replaced at any time, enabling a ring-buffer-stream capable of endless gapless playback, making this class ideal for dynamic and context sensitive music or narration.

Important: Use the FMEx.CreateStreamSentence method to create FMExStreamSentence instances, passing a list or array of FMExStream objects to be stitched. This class cannot be constructed using the New keyword.

Important: All the FMExStream objects used as sentence fragments must be non-nil and valid, and have the same frequency, bit depth, and number of channels. I.e. If the first stream fragment is 44.1KHz/16bit Mono format, the rest must also be 44.1KHz/16bit Mono format. It is also illegal to use FMExStreamSentence instances as fragments. Be sure to monitor FMOD Ex's error output should you encounter playback problems.

Important: You must successfully initialize FMOD Ex via the FMEx.StartUp method before creating FMExStreamSentence objects. Also note that all existing FMExStreamSentence instances become invalidated after calling FMEx.ShutDown. Please see the Restarting FMOD Ex section for details on how to properly restart FMOD Ex should the need arise.

Properties

Expand All | Collapse All

Methods

Expand All | Collapse All