Ru/Looping a sound: Difference between revisions

From Valve Developer Community
< Ru
Jump to navigation Jump to search
No edit summary
Line 14: Line 14:
{{warning:ru|{{l4d2}} During development: editing the contents of an existing sound file stored in your campaign's ''sound.cache'' will not show any change until the sound cache is rebuilt! See [[L4D2 Campaign Add-on Tutorial#Creating a sound.cache files|Creating a sound.cache files]] or [[L4D2 Custom Sound and Music Tutorial]] for further instructions.}}
{{warning:ru|{{l4d2}} During development: editing the contents of an existing sound file stored in your campaign's ''sound.cache'' will not show any change until the sound cache is rebuilt! See [[L4D2 Campaign Add-on Tutorial#Creating a sound.cache files|Creating a sound.cache files]] or [[L4D2 Custom Sound and Music Tutorial]] for further instructions.}}


== Programs ==
== Программы ==


These free programs can add cue points to a WAV:
Эти бесплатные программы позволяют добавлять контрольные точки в WAV:


* [http://www.goldwave.com/ GoldWave]
* [http://www.goldwave.com/ GoldWave]
Line 23: Line 23:
=== GoldWave ===
=== GoldWave ===


Open Goldwave and open the sound you want to loop. Click the '''cues''' icon. ([[Image:Cues button.jpg]])
Запустите Goldwave и откройте звук, который хотите закольцевать. Щелкните по иконке '''cues'''. ([[Image:Cues button.jpg]])
Then in the new window click on the '''New''' button and add a cue point '''At Start'''. Then click '''New''' for another cue point and add a point '''At End'''. So it looks similar to this:
Затем, в новом окне щелкните по кнопке '''New''' и добавьте начальную контрольную точку '''At Start'''. Then click '''New''' for another cue point and add a point '''At End'''. So it looks similar to this:


[[Image:Cue dialog.jpg]]
[[Image:Cue dialog.jpg]]

Revision as of 00:05, 1 August 2015

Template:Otherlang2

Зацикленный звук будет повторяться бесконечно, без разрыва между его концом и началом. Для этого необходимо, чтобы начало и конец файла совпадали, иначе звук будет прыгать или воспроизводиться с щелчком.

Source находит зацикленные звуки ТОЛЬКО через контрольные точки, вложенные в файл. Это касается только формата WAV, MP3-шки не зацикливаются. WAV, сжатый MS-ADPCM, может быть закольцован, но в результате сжатия при новом запуске звука будет возникать щелчок. (То, чего теоретически можно избежать для любого сжатого фрмата, включая MP3.)

Template:Note:ru

Template:Warning:ru

Программы

Эти бесплатные программы позволяют добавлять контрольные точки в WAV:

GoldWave

Запустите Goldwave и откройте звук, который хотите закольцевать. Щелкните по иконке cues. (Cues button.jpg) Затем, в новом окне щелкните по кнопке New и добавьте начальную контрольную точку At Start. Then click New for another cue point and add a point At End. So it looks similar to this:

Cue dialog.jpg

Cue location

Your cues do not have to be at the start and end of the file. If you place them in the middle Source will start playing the sound normally, then when it reaches the end cue will loop back to the start cue. From then on only what's between the cues will play.

Warning.pngПредупреждение:It seems that the end cue maybe doesn't have any effect at all. See the Discussion page for more details.

This can be used to give a sound a "winding up" effect that only plays once (e.g. a motor starting).

See Also

External Links