Env microphone: Difference between revisions
Jump to navigation
Jump to search
Plykkegaard (talk | contribs) m (→See also: redirected to type 3 studios as gmodcentral mirror is without sample maps) |
m ("temporarely" (misspellings page) & minor tidy) |
||
Line 1: | Line 1: | ||
{{wrongtitle|title=env_microphone}} | {{wrongtitle|title=env_microphone}} | ||
==Entity | |||
== Entity description == | |||
[[Image:{{PAGENAME}}.png|left]]Broadcasts sound from a location for either playback or monitoring.{{clr}} | [[Image:{{PAGENAME}}.png|left]]Broadcasts sound from a location for either playback or monitoring.{{clr}} | ||
==Keyvalues== | == Keyvalues == | ||
* {{kv targetname}} | * {{kv targetname}} | ||
* {{kv parentname}} | * {{kv parentname}} | ||
Line 57: | Line 58: | ||
<dl><dd>{{warning|setting this to zero (or a value > 1024) when the microphone is in Speaker mode can be very bad for performance!!}}</dd></dl> | <dl><dd>{{warning|setting this to zero (or a value > 1024) when the microphone is in Speaker mode can be very bad for performance!!}}</dd></dl> | ||
==Inputs== | == Inputs == | ||
* {{i targetname}} | * {{i targetname}} | ||
* {{i parentname}} | * {{i parentname}} | ||
Line 64: | Line 65: | ||
: Set the microphone to output through a different speaker entity. | : Set the microphone to output through a different speaker entity. | ||
==Outputs== | == Outputs == | ||
* {{o targetname}} | * {{o targetname}} | ||
* '''SoundLevel <float>''' | * '''SoundLevel <float>''' | ||
Line 73: | Line 74: | ||
: Fired whenever this microphone hears any sound it cares about. | : Fired whenever this microphone hears any sound it cares about. | ||
== External links == | |||
== | |||
<!-- SDK nuts has closed. When (and if) these tutorials are ported onto the VDC, please link to them instead! | <!-- SDK nuts has closed. When (and if) these tutorials are ported onto the VDC, please link to them instead! | ||
Linking to typ3 studios | Linking to typ3 studios temporarily as gmodcentral does not have sample maps for download | ||
[http://www.gmodcentral.com/mirror/akg/tutorials/wiseSoundCast.htm HL2 Digital Sound] | [http://www.gmodcentral.com/mirror/akg/tutorials/wiseSoundCast.htm HL2 Digital Sound] | ||
--> | --> | ||
* [http://type3studios.com/civilization/tutorial_render/sdknuts/Sound2_wiseSoundCast HL2 Digital Sound] | * [http://type3studios.com/civilization/tutorial_render/sdknuts/Sound2_wiseSoundCast HL2 Digital Sound] | ||
[[Category:Sound System]] | |||
[[Category:Entities]] |
Revision as of 13:37, 21 February 2008
Entity description
Broadcasts sound from a location for either playback or monitoring.
Keyvalues
- <target_destination> If the speaker is in Measuring mode, this is the name of the entity where the sound level is to be measured.
- SpeakerName
- <target_destination> The name of a speaker entity through which to play any sounds heard by this microphone. If specified, the microphone will consider itself in Speaker mode. Cannot be an env_speaker!
- ListenFilter
- <filterclass> The name of an filter entity which specifies the only entities the microphone can hear. Sounds emitted by other entities will not be heard.
- speaker_dsp_preset
- <choices> Only useful in Speaker mode. If specified, when the microphone is enabled, it'll set the global dsp_speaker preset to this value. Sounds played back through speakers will then be affected by the selected DSP.
Literal Value Description 0 Use Default 50 1 NO EFFECT 51 2 (DUPLICATE OF 1) 52 3 (DUPLICATE OF 1) 53 4 (DUPLICATE OF 1) 54 5 (DUPLICATE OF 1) 55 6 SPEAKER, LOUDER 56 7 SPEAKER VERY SMALL 57 8 LOUDSPEAKER, ECHO 58 9 SPEAKER SMALL 59 10 SPEAKER TINY
- Sensitivity
- <float> (0-10) If the speaker is being used to monitor sound levels, this keyvalue dictates its sensitivity.
Literal Value Description 0 Deaf 1 Normal 2-10 Increasing Sensitivity
- MaxRange
- <float> (0-â) Sounds beyond this range won't be heard, irrelevant of attenuation.
Warning:setting this to zero (or a value > 1024) when the microphone is in Speaker mode can be very bad for performance!!
Inputs
- Template:I targetname
- Template:I parentname
- Template:I enabledisable
- SetSpeakerName <target_destination>
- Set the microphone to output through a different speaker entity.
Outputs
- Template:O targetname
- SoundLevel <float>
- Fired in Measuring mode whenever the sound level changes.
- OnRoutedSound
- Fired whenever a sound is routed out through the specified speaker (if any).
- OnHeardSound
- Fired whenever this microphone hears any sound it cares about.