Ru/Looping a sound: Difference between revisions
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.}} | ||
== | == Программы == | ||
Эти бесплатные программы позволяют добавлять контрольные точки в WAV: | |||
* [http://www.goldwave.com/ GoldWave] | * [http://www.goldwave.com/ GoldWave] | ||
Line 23: | Line 23: | ||
=== GoldWave === | === GoldWave === | ||
Запустите Goldwave и откройте звук, который хотите закольцевать. Щелкните по иконке '''cues'''. ([[Image: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: | |||
[[Image:Cue dialog.jpg]] | [[Image:Cue dialog.jpg]] |
Revision as of 00:05, 1 August 2015
Зацикленный звук будет повторяться бесконечно, без разрыва между его концом и началом. Для этого необходимо, чтобы начало и конец файла совпадали, иначе звук будет прыгать или воспроизводиться с щелчком.
Source находит зацикленные звуки ТОЛЬКО через контрольные точки, вложенные в файл. Это касается только формата WAV, MP3-шки не зацикливаются. WAV, сжатый MS-ADPCM, может быть закольцован, но в результате сжатия при новом запуске звука будет возникать щелчок. (То, чего теоретически можно избежать для любого сжатого фрмата, включая MP3.)
Программы
Эти бесплатные программы позволяют добавлять контрольные точки в WAV:
GoldWave
Запустите Goldwave и откройте звук, который хотите закольцевать. Щелкните по иконке cues. ()
Затем, в новом окне щелкните по кнопке New и добавьте начальную контрольную точку At Start. Then click New for another cue point and add a point At End. So it looks similar to this:
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.

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
- Looping Menu Music - An Interlopers.net Tutorial on Soundlooping