Audio::loadStreamWithStartOffset: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
(yay)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Example:<br>AUDIO::LOAD_STREAM_WITH_START_OFFSET('STASH_TOXIN_STREAM', 2400, 'FBI_05_SOUNDS');<br><br>Only called a few times in the scripts.  
Example:<br>AUDIO::LOAD_STREAM_WITH_START_OFFSET('STASH_TOXIN_STREAM', 2400, 'FBI_05_SOUNDS');<br><br>Only called a few times in the scripts.  
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">audio.loadStreamWithStartOffset(streamName, startOffset, soundSet);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.audio.loadStreamWithStartOffset(streamName, startOffset, soundSet);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''streamName:''' String
*'''streamName:''' String
Line 10: Line 10:
==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]]

Latest revision as of 21:04, 6 May 2017

Example:
AUDIO::LOAD_STREAM_WITH_START_OFFSET('STASH_TOXIN_STREAM', 2400, 'FBI_05_SOUNDS');

Only called a few times in the scripts.

Syntax

mp.game.audio.loadStreamWithStartOffset(streamName, startOffset, soundSet);

Required Arguments

  • streamName: String
  • startOffset: int
  • soundSet: String

Return value

  • Boolean

Example

// todo

See also