Difference between revisions of "SNDINFO"

From ECWolf Wiki
(Created page with 'SNDINFO is a lump used to assign certain properties to sounds. ECWolf references sounds by their logical name and not their lump name so this lump is primarily used to assign lo…')
 
Line 5: Line 5:
 
  misc/myadlibsound  { NULL MYALSND } // This sound only has an adlib form.
 
  misc/myadlibsound  { NULL MYALSND } // This sound only has an adlib form.
 
Note that at the time of this writing ECWolf does not play PC speaker sounds, but they may be defined for future use.
 
Note that at the time of this writing ECWolf does not play PC speaker sounds, but they may be defined for future use.
 
+
== Commands ==
 +
SNDINFO also supports a few commands to create sounds with certain properties.
 +
* '''$alias''' ''logicalname'' ''othersound'' - Creates a logical sound that is indentical to the ''othersound''.
 +
* '''$random''' ''logicalname'' { ''othersound'' ... } - Creates a logical sound that randomly plays one sound from the list.
 
[[Category:Special Lumps]]
 
[[Category:Special Lumps]]

Revision as of 13:25, 2 October 2012

SNDINFO is a lump used to assign certain properties to sounds. ECWolf references sounds by their logical name and not their lump name so this lump is primarily used to assign logical names.

Logical Names

To assign a logical name to a sound lump all you need to do is specify the logical name followed by the lump name of the sound. Wolfenstein has three types of sounds. Digital, adlib, and pc speaker sounds. If the sound you wish to use is only of the digital type then just specifying the two names will work. Otherwise you must enclose the lumps in braces and in the before mentioned order. "NULL" can be used where a sound of that type does not exist. If the PC speaker sound does not exist it may be left out.

misc/mynewsound    MYSND // This is a digital only sound
misc/myadlibsound  { NULL MYALSND } // This sound only has an adlib form.

Note that at the time of this writing ECWolf does not play PC speaker sounds, but they may be defined for future use.

Commands

SNDINFO also supports a few commands to create sounds with certain properties.

  • $alias logicalname othersound - Creates a logical sound that is indentical to the othersound.
  • $random logicalname { othersound ... } - Creates a logical sound that randomly plays one sound from the list.