代码之家  ›  专栏  ›  技术社区  ›  Joonas Trussmann

从定制容器向Flex/Flash提供原始MP3/AAC数据

  •  1
  • Joonas Trussmann  · 技术社区  · 16 年前

    或者,如果不可能,可以通过某种方式连接到声音播放机制的磁盘/网络(在本例中,磁盘更为重要)I/O,从自定义包装器在内存中提供受支持的容器。

    2 回复  |  直到 16 年前
        1
  •  0
  •   aaaidan    16 年前

    A flash.media.Sound

    • 用URLRequest构造/加载,
    • 通过嵌入来继承其数据

    目前没有关于 直接地 将mp3(或aac或视频)数据传输到任何“媒体”对象,例如 Sound . 你只能得到 对象为其自身下载数据。有 people who are upset about this ,包括我自己;你不是一个人!

    并在 Adobe's bug tracker ,或投票表决一个现有的!

        2
  •  1
  •   Juan Pablo Califano    16 年前

    由于flashplayer10,可以将PCM/原始音频数据写入声音对象。

    http://help.adobe.com/en_US/FlashPlatform//reference/actionscript/3/flash/events/SampleDataEvent.html?filter_flex=4

    http://www.adobe.com/devnet/flash/articles/dynamic_sound_generation/index.html

    此外,如果您对Actionscript中音频编程的好文章和参考资料感兴趣,您可能希望查看Andre Michelle的stuf:

    http://blog.andre-michelle.com/

    http://lab.andre-michelle.com/