Accessibility
 
Home / Developer Center / Director Developer Center /

Director Article

Icon or Spacer Icon or Spacer Icon or Spacer
Jim Andrews
 
Jim Andrews
www.vispo.com
 

Audio programming in Director with Nio


Shockwave websites can be amazing to view, due to their use and control of sounds. They can be even more interesting when the author provides information about the Director programming in Lingo. The goal of this article is to discuss some of the technical aspects of working with Nio and Vismu (visual music) and focus on audio programming using Director.

The audio capabilities of Director should not be overlooked, because Director is a great tool for creating serious audio and multimedia on the web.

 

This article deals with operations performed on sounds in internal or external casts—rather than SWA sounds in Director. SWA files play as they stream in. Sounds from internal or external casts do not play until they are fully downloaded. When attempting to loop sounds or have near instantaneous access to sounds, internal or external cast members should always be used. Avoid using SWA sounds for random playback purposes, because these sounds must be downloaded each time they are played.

Internal or external cast sounds can be compressed quite dramatically (you can set the compression ratio), and Vismu deals with fairly short sounds (2-12 seconds long). This means that the individual audio clips download very quickly. In fact, using Vismu is better than being able to cache non-cast member sound files. Even if it was possible to cache these files, you would also have to find a way to reliably stream multiple sounds at once, which would not be feasible using slow connection speeds. The streaming strategy implemented in Nio is pretty much optimal, given the form of Vismu.

 
·
Queuing and playing sounds
·
Working with cue points
·
Using getPlayList to control audio
·
Creating and using timers
·
Online audio resources
 
  Next

 

Jim Andrews is developing new forms of music arising from interactive audio and also interactive alternatives to the music video. Nio has been featured in the New York Times, the Frankfurt Times, reviewed extensively by sites, scholars and radio, print, and television journalists, studied by students of music, and generally celebrated as an outstanding example of new media, and audio in particular. Andrews made all the sound with his voice and finger snapping, and created all the Lingo programming and Flash animations in Nio. His site, www.vispo.com , has been up since 1995 as the center of his artistic production as a programmer, writer, mathematician, visual poet, audio guy, and essayist. His business is art, full-time.