Difference between revisions of "SoundBank file"

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

Latest revision as of 12:30, 12 June 2017

.sbnk

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 using Resources::GetSoundEvent, by passing a path like sounds/payload.sbnk:healgun_loop.