
flash.media.Sound Maven / Gradle / Ivy
The newest version!
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 startTime
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 null
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);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy