gpt4 book ai didi

flash - 在 actionscript 3 中嵌入 mp3 不起作用

转载 作者:行者123 更新时间:2023-12-04 13:00:21 25 4
gpt4 key购买 nike

我对 actionscript 3 有问题,尤其是在使用 embed 标签时。我有这个代码:

[Embed(source = "sound.mp3")]

private static var soundClip:Class;


...



var sound:Sound = (new soundClip()) as Sound;

trace(sound.length);

当我测试电影时,我得到以下输出: 4501,923 这是以毫秒为单位的 sound.mp3 长度。但是,原始声音是 13.000 毫秒。

这怎么可能,请任何人帮助我?

谢谢你。

最佳答案

嵌入过程意味着转码(由编译器进行),如果声音不适合支持的 Flash Player 声音格式,您可能会得到意想不到的结果,例如缩短长度。
检查您嵌入的声音是否为 44100 Hz 立体声,这是支持的采样率,不会导致任何问题。

干杯!

关于flash - 在 actionscript 3 中嵌入 mp3 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6818257/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com