Difference between revisions of "SoundBank file"

From Serious Sam's Bogus Detour
Jump to: navigation, search
Line 3: Line 3:
 
[//{{SERVERNAME}}/docs/engine/namespace_resources.html Resources::GetSoundEvent]
 
[//{{SERVERNAME}}/docs/engine/namespace_resources.html Resources::GetSoundEvent]
  
<pre>
+
== Example ==
<string name="beam-loop-snd">sounds/payload.sbnk:healgun_loop</string>
 
</pre>
 
  
 
<pre>
 
<pre>
Line 13: Line 11:
 
   </sound>
 
   </sound>
 
</soundbank>
 
</soundbank>
 +
</pre>
 +
 +
This sound could then be used as:
 +
 +
<pre>
 +
<string name="beam-loop-snd">sounds/payload.sbnk:healgun_loop</string>
 
</pre>
 
</pre>
  
 
[[Category:File type]]
 
[[Category:File type]]

Revision as of 13:30, 12 June 2017

.sbnk

Resources::GetSoundEvent

Example

<soundbank>
  <sound category="sfx" name="healgun_loop" volume="1" is3d="true" looping="true">
    <source res="sounds/healgun.wav" />
  </sound>
</soundbank>

This sound could then be used as:

<string name="beam-loop-snd">sounds/payload.sbnk:healgun_loop</string>