• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8. Controlling Sound > Reading Sound Properties

Reading Sound Properties

The Sound class provides two properties that you can use to find out more about the lengths of sounds. position is a property that measures the number of milliseconds a sound has been playing. duration is a property that measures the total number of milliseconds of the sound. Both properties are read-only (Table 8.2).

Table 8.2. Sound Properties
PROPERTYDESCRIPTION
positionLength of time a sound has been playing (in milliseconds)
durationTotal length of a sound (in milliseconds)



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint