简体   繁体   English

在SoundChannel上将音频提升到1以上

[英]Boosting Audio Above 1 on SoundChannel

I'm dealing with an audio anomalie. 我正在处理音频异常。 I have audio that is mastered quite loud, yet on some systems, it is too quiet. 我掌握的音频声音很大,但在某些系统上却太安静了。 Boosting the audio file anymore causes clipping. 增强音频文件将导致剪辑。

It would be fine, except for the fact that, in my project, a lot of other sounds are in use as well. 没关系,除了在我的项目中还使用许多其他声音的事实。 Lowering the volume of everything to match this would make some stuff impossible to hear. 降低所有内容的音量以使其与此匹配将使某些东西听不到。 And again, this doesn't happen on all computers, only some. 再说一次,这并非在所有计算机上都发生,只有部分计算机上会发生。

To compensate, can I boost audio in code? 作为补偿,我可以增强代码中的音频吗? The SoundChannel I'm using is already at 1.0 volume (full), and I know I can't use that property to boost it further. 我正在使用的SoundChannel已达到1.0音量(已满),我知道我无法使用该属性来进一步增强它。 Is there any way to raise the audio further in code? 有什么方法可以在代码中进一步提高音频效果吗?

(I'm using Flash Professional CS5.5, Adobe AIR 3, and ActionScript 3) (我正在使用Flash Professional CS5.5,Adobe AIR 3和ActionScript 3)

After some time, I've concluded that it is apparently not possible to boost sound volume above 1 (that is, to amplify) using Flash's API. 一段时间后,我得出结论,使用Flash的API显然无法将音量提高到1以上(即放大)。 While you can set SoundTransform to a number greater than 1, it will coerce to 1 nevertheless. 虽然您可以将SoundTransform设置为大于1的数字,但仍将强制为1。

If anyone has information to the contrary, you are welcome to post the answer and I'll change which answer I've accepted if you solve the problem. 如果有人有相反的信息,欢迎您发布答案,如果您解决问题,我将更改我接受的答案。

You are correct. 你是对的。 Sounds cannot be played at a volume above 1 (100%). 不能以大于1(100%)的音量播放声音。 However -- You can play two identical sounds simultaneously on different channels. 但是,您可以在不同的通道上同时播放两种相同的声音。 This would effectively give you an audio boost above 1. But depending on the nature of the sound you may get some distortions from synchronization. 这样可以有效地将音频增强到1以上。但是根据声音的性质,同步可能会导致一些失真。 If you're talking about a sound-effect without a lot of discernable Attack, you may get away with it. 如果您在谈论声​​音效果而没有很多可察觉的Attack音效,那么您可能会避开它。 If you're talking about speech or percussive sound, your mileage may vary. 如果您在谈论语音或敲击声,您的里程可能会有所不同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM