Notifications in Jones


Let's try the notification implementation in Jones and then see how it's done. If you installed the CD, run NotifyJones by selecting it from the Start menu. Otherwise, double-click on its icon in the Unit II\Bin directory or compile and run it from the 14_Notification source directory.

Notice that a new display appears at the bottom-right corner.

The Notifications button lets you select which notifications you'd like to enable, and the box below it displays the notifications as the Segments play.

By default, all notifications are disabled, so start by clicking on the button. This opens the Notifications dialog.

Enable Performance, Segment, and Lyric and then click on OK.

Go to the Scripts section and click on the Open button to read in a script. Load SimpleScript.spt from the Media directory. It has Segments that have been prepared with lyrics.

Double-click on StartLevel in the routine list to initiate playback of the primary Segment. Immediately, two notifications appear in the display.

Seg Start indicates that a Segment started playing. Perf Start indicates that it is also the very first Segment.

Double-click on Wasp. This triggers a call to Wasp() in the script. Wasp() plays a secondary Segment, which also has a Lyric Track.

Wasp() kicks off a flurry of notification activity. First, Seg Start indicates that the new Segment has started. Then, Bzzzzz, Piff!, and finally Zow! appear, as the Segment delivers each of these lyrics. After a while, Seg Near End indicates that the Segment is almost finished, and finally Seg End appears as the Segment completes (if you look to the graphic display, you should see its rectangle moved completely to the left at this very moment).

Experiment a little more by turning on and off different notifications and playing the different script routines.




DirectX 9 Audio Exposed(c) Interactive Audio Development
DirectX 9 Audio Exposed: Interactive Audio Development
ISBN: 1556222882
EAN: 2147483647
Year: 2006
Pages: 170

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net