Audio::loadStream: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Example:<br>AUDIO::LOAD_STREAM('CAR_STEAL_1_PASSBY', 'CAR_STEAL_1_SOUNDSET');<br><br>All found occurrences in the b678d decompiled scripts: pastebin.com/3rma6w5w<br><br>Stream names often ends with '_MASTER', '_SMALL' or '_STREAM'. Also '_IN', '_OUT' and numbers.  <br><br>soundSet is often set to 0 in the scripts. These are common to end the soundSets: '_SOUNDS', '_SOUNDSET' and numbers.  
Example:<br>AUDIO::LOAD_STREAM('CAR_STEAL_1_PASSBY', 'CAR_STEAL_1_SOUNDSET');<br><br>All found occurrences in the b678d decompiled scripts: pastebin.com/3rma6w5w<br><br>Stream names often ends with '_MASTER', '_SMALL' or '_STREAM'. Also '_IN', '_OUT' and numbers.  <br><br>soundSet is often set to 0 in the scripts. These are common to end the soundSets: '_SOUNDS', '_SOUNDSET' and numbers.  
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">audio.loadStream(streamName, soundSet);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.audio.loadStream(streamName, soundSet);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''streamName:''' String
*'''streamName:''' String
Line 14: Line 14:
{{Audio_s_function_c}}
{{Audio_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:Audio API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:06, 11 May 2017

Example:
AUDIO::LOAD_STREAM('CAR_STEAL_1_PASSBY', 'CAR_STEAL_1_SOUNDSET');

All found occurrences in the b678d decompiled scripts: pastebin.com/3rma6w5w

Stream names often ends with '_MASTER', '_SMALL' or '_STREAM'. Also '_IN', '_OUT' and numbers.

soundSet is often set to 0 in the scripts. These are common to end the soundSets: '_SOUNDS', '_SOUNDSET' and numbers.

Syntax

mp.game.audio.loadStream(streamName, soundSet);

Required Arguments

  • streamName: String
  • soundSet: String

Return value

  • Boolean

Example

// todo

See also