1 Reply Latest reply on Apr 11, 2008 8:24 AM by duncanhall

    Sound Snapshot

      I'm working to a AIR application that need to take spectrum snapshot from a MP3 file.
      I have some problems:
      - SoundMixer.computeSpectrum doesn't work if the sound is mute or stop, and that is not pretty nice
      - I want to take snapshot from n - the secont at which to take the snapshot.
      For first problem I don't find any solution
      I solved the second part with a timer, but it's work only for one snapshot, if I try to take more snapshots faster, then the spectrum is a horizontal line.

      Thank's for any help!
        • 1. Re: Sound Snapshot
          duncanhall Level 1
          SoundMixer.computeSpectrum() returns an array representing the wave of all sounds currently playing. This means that if you have 50 sounds playing, the array returned represents a combination of all 50 amplitude/frequency waves. If you have nothing playing, there is no array to be returned.