package flash.media; /** * The Sound class lets you work with sound in an application. * * @author Thomas Weston */ public interface Sound { /** * Generates a new SoundChannel object to play back the sound. * * @param startTime The initial position in milliseconds at which playback should start. * @param loops Defines the number of times a sound loops back to the <code>startTime</code> value before the sound channel stops playback. * @param sndTransform The initial SoundTransform object assigned to the sound channel. * @return A SoundChannel object, which you use to control the sound. This method returns <code>null</code> if you have no sound card or if you run out of available sound channels. The maximum number of sound channels available at once is 32. */ public SoundChannel play(float startTime, int loops, SoundTransform sndTransform); }