Difference between revisions of "0AAD"

From GTAMods Wiki
Jump to navigation Jump to search
m (cleo3)
m
Line 4: Line 4:
 
| p1          = MP3 handle obtained by [[0AAC]]
 
| p1          = MP3 handle obtained by [[0AAC]]
 
| p2          = A number to specify an action  
 
| p2          = A number to specify an action  
| game        = [[San Andreas]]
+
| game        = [[San Andreas]] with [[CLEO]]
 
}}
 
}}
 
 
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>
 
[[Sanny Builder]] example:<source lang="scm">0AAD: set_mp3 0@ perform_action 1</source>

Revision as of 15:18, 22 June 2010

{{{games}}}


Description
Sets a loaded MP3's action
Syntax
{{{syntax1}}}
Parameter

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:

0AAD: set_mp3 0@ perform_action 1

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.