Difference between revisions of "SoundBank file"

From Serious Sam's Bogus Detour
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
.sbnk
 
.sbnk
  
[//{{SERVERNAME}}/docs/engine/namespace_resources.html Resources::GetSoundEvent]
+
== Example ==
 +
 
 +
<pre>
 +
<soundbank>
 +
  <sound category="sfx" name="healgun_loop" volume="1" is3d="true" looping="true">
 +
    <source res="sounds/healgun.wav" />
 +
  </sound>
 +
</soundbank>
 +
</pre>
 +
 
 +
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>.
  
 
[[Category:File type]]
 
[[Category:File type]]

Latest revision as of 13: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.