Difference between revisions of "0AAD"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 0AAD=2,%1d% %2d%
+
| games      = {{Icon|SA}} (with [[CLEO]])
 
| description = Sets a loaded MP3's action
 
| description = Sets a loaded MP3's action
| p1          = MP3 handle obtained by [[0AAC]]
+
| syntax1    = 0AAD: set_mp3 [''mp3 handle''] perform_action [''int'']
| p2          = A number to specify an action
+
| p1t        = [''mp3 handle'']
| game        = [[San Andreas]] with [[CLEO]]
+
| p1d        = The [[0AAC|handle of the MP3]]
 +
| p2t        = [''int'']
 +
| p2d        = Action (see below)
 
}}
 
}}
 
This opcode sets a loaded MP3's action. Play, Stop, Pause and Resume are currently supported. It is used in conjunction with opcodes [[0AAB]] and [[0AAC]]
 
This opcode sets a loaded MP3's action. Play, Stop, Pause and Resume are currently supported. It is used in conjunction with opcodes [[0AAB]] and [[0AAC]]
[[Sanny Builder]] example:<source lang="scm">0AAD: set_mp3 0@ perform_action 1</source>
 
  
 
Action Numbers:
 
Action Numbers:
:0: Stop
+
*0: Stop
:1: Play
+
*1: Play
:2: Pause
+
*2: Pause
:3: Resume  
+
*3: Resume  
  
 
==Keywords==
 
==Keywords==

Latest revision as of 05:54, 26 January 2016

San Andreas (with CLEO)


Description
Sets a loaded MP3's action
Syntax
0AAD: set_mp3 [mp3 handle] perform_action [int]
Parameter
[mp3 handle]
The handle of the MP3
[int]
Action (see below)

This opcode sets a loaded MP3's action. Play, Stop, Pause and Resume are currently supported. It is used in conjunction with opcodes 0AAB and 0AAC

Action Numbers:

  • 0: Stop
  • 1: Play
  • 2: Pause
  • 3: Resume

Keywords

load, mp3, audio, sound

Notes

The MP3 opcodes have been known to cause crashes in CLEO3 on some occasions. Take care when using these opcodes.