Xeen Wiki
(Created page with '<table class="infobox" style="font-size:89%; width:300px; background-color:#FFF;"> <tr><th colspan="2" style="background-color:#3366CC; color:#FFFFFF; font-size:120%;">Opcode Det…')
 
No edit summary
Line 1: Line 1:
  +
{{OpcodeNew
<table class="infobox" style="font-size:89%; width:300px; background-color:#FFF;">
 
  +
|opcode=0x3C
<tr><th colspan="2" style="background-color:#3366CC; color:#FFFFFF; font-size:120%;">Opcode Details</th></tr>
 
  +
|name=PlayCD
<tr><td style="width:40%;">'''Opcode'''</td><td>0x3C</td></tr>
 
  +
|supported=World (CD Version) ONLY
<tr><td>'''Name'''</td><td>PlayCD</td></tr>
 
  +
|category=Miscellaneous Opcodes
<tr><td>'''Supported In'''</td><td>World (CD Version) ONLY</td></tr>
 
  +
|previous=0x3B [[FlipWorld]]
<tr><td>'''Category'''</td><td>[[:Category:Miscellaneous Opcodes|Miscellaneous Opcodes]]</td></tr>
 
  +
|arguments={{arg2|byte|cdTrackNumber}}{{arg2|uint16|startFrame}}{{arg2|uint16|endFrame}}}}
<tr><th colspan="2" style="background-color:#3366CC; color:#FFFFFF; font-size:120%;">All Opcodes</th></tr>
 
<tr><td>'''Previous Opcode'''</td><td colspan="2">0x3B [[FlipWorld]]</td></tr>
 
<tr><td>'''Next Opcode'''</td><td colspan="2">''none''</td></tr>
 
</table>
 
 
'''Arguments:'''
 
* [[Data_Types#Byte|byte]] cdTrackNumber
 
* [[Data_Types#UInt16|uint16]] startFrame
 
* [[Data_Types#UInt16|uint16]] endFrame
 
   
 
== Description ==
 
== Description ==
Line 24: Line 16:
 
== Notes ==
 
== Notes ==
 
This function is only supported in the World of Xeen CD edition. None of the other original games support this opcode.
 
This function is only supported in the World of Xeen CD edition. None of the other original games support this opcode.
 
__NOTOC__
 
 
[[Category:Opcodes]]
 
[[Category:Opcodes]]
 
[[Category:Miscellaneous Opcodes]]
 
[[Category:Miscellaneous Opcodes]]

Revision as of 21:07, 22 February 2010

Opcode Details
Opcode0x3C
NamePlayCD
Supported InWorld (CD Version) ONLY
CategoryMiscellaneous Opcodes
All Opcodes
Previous Opcode0x3B FlipWorld
Next Opcodenone

Arguments:

Description

This opcode is used in the World of Xeen CD version to play NPC speech audio from the CD.

The first track on the World of Xeen CDs is the data track, containing the game files. Tracks 2 and above are audio tracks, so the cdTrackNumber parameter is always equal to 2 or greater.[verification needed]

Each NPC does not have their own individual audio track, rather it appears each voice artist has one audio track. All the snippets of conversation for all characters voiced by that voice artist are stored in one track with a few seconds of silence between each snippet. The frame numbers given in startFrame and endFrame specify the extent of the track to be played. A more detailed breakdown of the CD format can be found, for example, at the Track (CD) Wikipedia article.

Notes

This function is only supported in the World of Xeen CD edition. None of the other original games support this opcode.