Audio::loadStream: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
(yay)
Line 9: Line 9:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Audio_function_c}}
{{Audio_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 20:59, 6 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

audio.loadStream(streamName, soundSet);

Required Arguments

  • streamName: String
  • soundSet: String

Return value

  • Boolean

Example

// todo

See also