Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

31.7. Extracting Audio

When you sample audio with SoundMixer.computeSpectrum(), you get a tiny slice of the complete audio mix at the current time. But in Flash Player 10 and above, you can do better: you can extract any portion of any single sound. This has many applications. You can use it to draw a preview of a whole sound clip for an audio editing application. You can use beat detection to try to match the tempo of a song. Or you can take an input sound, modify its audio data, and play back the modified audio — there you have an effect filter!

NOTE

FP10. Extracting sound is only possible in Flash Player 10 and later.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial