隨筆-193  評論-715  文章-1  trackbacks-0
          We can use extract method of the sound class in Flex 4/Flash 10, the method is able to extract raw wave data from SWF object. The technology is new feature, I have used this new technology recently, and I have got some result:
          The extract method like a black box, we can't know what does it do.

          1, Extract low sample rate sound will be get more samples, I can't understand that why like this. I know that it will transfer all kind of sample rate to 44.1KHz, but we can't know that how to transfer?

          2, MPEG wave data is not bound to a single frame, so we need overlap some frames in a SWF sound what the sound compose of some frames. the overlap size is an experience value, in general, I set it as 7 frames. The value is depend your parse frames and detail extract algorithm sometimes. Anyway, 7 is my recommendation value.

          3, This method can provide some very useful function with SoundMixer class for extend your application. For instance, show wave shape, add some effect, etc.
          There is a sample for show waveform:
          http://www.bytearray.org/?p=329

          At last, I strong recommend an open source project, this project is a stream player based on Flex platform.
          http://code.google.com/p/as3mp3streamplayer/

          If you had deeply researched at this method, please communication with me. thank you!
           

          posted on 2009-12-15 12:50 Robin's Programming World 閱讀(483) 評論(2)  編輯  收藏 所屬分類: Flex & Flash

          評論:
          # re: Sound Extract Method Study[未登錄] 2009-12-15 13:47 | Sean
          Man, it's coooooooooool  回復  更多評論
            
          # re: Sound Extract Method Study 2009-12-15 16:04 | Robin's Java World
          @Sean
          Thank you a lot!  回復  更多評論
            
          主站蜘蛛池模板: 班戈县| 江城| 财经| 宿松县| 霞浦县| 探索| 遂平县| 偃师市| 那曲县| 凤城市| 江油市| 旬邑县| 东丰县| 南乐县| 平利县| 西乌| 闵行区| 长治市| 如皋市| 新余市| 衡阳县| 全南县| 大庆市| 临安市| 福安市| 德惠市| 精河县| 海丰县| 阜南县| 山阳县| 社旗县| 农安县| 嘉黎县| 罗源县| 景泰县| 孟州市| 丁青县| 崇礼县| 绥中县| 临澧县| 罗田县|