Template:Audio functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Removed disabled mission audio functions)
(Rework)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
*[[playSoundFrontEnd]]
<includeonly>
<ul>
{{#if: {{{1|}}}
| {{#ifeq: {{lc:{{{1}}}}} | client
|
    <!-- CLIENT functions -->
    <li>[[getRadioChannel]]</li>
    <li>[[getRadioChannelName]]</li>
    <li>[[getSFXStatus]]</li>
    <li>[[getSoundBPM]]</li>
    <li>[[getSoundBufferLength]]</li>
    <li>[[getSoundEffectParameters]]</li>
    <li>[[getSoundEffects]]</li>
    <li>[[getSoundFFTData]]</li>
    <li>[[getSoundLength]]</li>
    <li>[[getSoundLevelData]]</li>
    <li>[[getSoundMaxDistance]]</li>
    <li>[[getSoundMetaTags]]</li>
    <li>[[getSoundMinDistance]]</li>
    <li>[[getSoundPan]]</li>
    <li>[[getSoundPosition]]</li>
    <li>[[getSoundProperties]]</li>
    <li>[[getSoundSpeed]]</li>
    <li>[[getSoundVolume]]</li>
    <li>[[getSoundWaveData]]</li>
    <li>[[isSoundLooped]]</li>
    <li>[[isSoundPanningEnabled]]</li>
    <li>[[isSoundPaused]]</li>
    <li>[[playSFX3D]]</li>
    <li>[[playSFX]]</li>
    <li>[[playSound3D]]</li>
    <li>[[playSound]]</li>
    <li>[[setRadioChannel]]</li>
    <li>[[setSoundEffectEnabled]]</li>
    <li>[[setSoundEffectParameter]]</li>
    <li>[[setSoundLooped]]</li>
    <li>[[setSoundMaxDistance]]</li>
    <li>[[setSoundMinDistance]]</li>
    <li>[[setSoundPan]]</li>
    <li>[[setSoundPanningEnabled]]</li>
    <li>[[setSoundPaused]]</li>
    <li>[[setSoundPosition]]</li>
    <li>[[setSoundProperties]]</li>
    <li>[[setSoundSpeed]]</li>
    <li>[[setSoundVolume]]</li>
    <li>[[stopSound]]</li>
  }}
</br>
<li style="list-style: none; margin-left: -1.6em;">'''Shared'''</li>
}}
 
<!-- SHARED functions-->
<li>[[playSoundFrontEnd]]</li>
</ul>
</includeonly>
 
<noinclude>
{{Functions list info}}
[[Category:Functions templates]]</noinclude>

Latest revision as of 14:57, 6 September 2024


The template contains a list of functions. It accepts 1 parameter, which specifies whether the functions should be displayed for server or client. Regardless of the parameter, a list of shared functions will also be displayed

Example: {{Camera functions|client}} will display a list of client-side functions, and below it a list of shared functions, similarly for the server.