I have written simple example for playing mp3 sound with drawing sound FFT spectrum.       Here is the code.  package utils.sound {     import flash.display.Sprite;     import flash.events.Event;     import flash.events.MouseEvent;     import flash.utils.ByteArray;     import flash.media.SoundMixer;     import flash.media.Sound;     import ui.Button;     import flash.net.URLRequest;     import flash.media.SoundChannel;          public class SoundPlayerTemp extends Sprite     {         private static const MAX_CHANEL :int = 256;          private var w:int = 1;         private var maxSize:int = 400;         private const OFFSET_Y:int = 20;                  private var urlReq :URLRequest = new URLRequest("file://c:/temp/test.mp3");          // any button is fine....         private var startButton:Button = new Button(maxSize - 50, 100, OFFSET_Y);                  private var snd:Sound = new Sound();         private var sndCh:SoundChannel;                  private var playState:B...
IT関連の技術やプログラミングを中心に記事を書いています。ハードウェアも好きなので、日々のちょっとしたお役立ち情報も投稿しています。