Changes
From Final Fantasy Inside
no edit summary
* Opcode: '''0xF1'''
* Short name: '''SOUND'''
* Long name: Play Sound
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0xF1
! width="50" | ''B1 / B2''
! width="80" | ''I''
! width="40" | ''D''
|}
==== Arguments ====
* '''const Bit[4]''' ''B1'': Source bank 1, or zero if ''I'' is set as a constant value.
* '''const Bit[4]''' ''B2'': Source bank 2, or zero if ''D'' is set as a constant value.
* '''const UShort''' ''I'': [[FF7/Field/Sound ID Table|Sound ID]] to play, or lower byte indicating address and higher byte zero, if ''B1'' is non-zero.
* '''const UByte''' ''D'': Directional sound, or address to find direction value, if ''B2'' is non-zero.
==== Description ====
Plays the sound file indicated by ''I'', or if ''B1'' is non-zero, plays the sound with ID found at bank ''B1'' and address ''I''. The direction of the sound can also be specified, with 0 indicating the left speaker and FF indicating the right speaker, although for the sound to play at the center, the value is at approximately 0x40.
* Short name: '''SOUND'''
* Long name: Play Sound
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0xF1
! width="50" | ''B1 / B2''
! width="80" | ''I''
! width="40" | ''D''
|}
==== Arguments ====
* '''const Bit[4]''' ''B1'': Source bank 1, or zero if ''I'' is set as a constant value.
* '''const Bit[4]''' ''B2'': Source bank 2, or zero if ''D'' is set as a constant value.
* '''const UShort''' ''I'': [[FF7/Field/Sound ID Table|Sound ID]] to play, or lower byte indicating address and higher byte zero, if ''B1'' is non-zero.
* '''const UByte''' ''D'': Directional sound, or address to find direction value, if ''B2'' is non-zero.
==== Description ====
Plays the sound file indicated by ''I'', or if ''B1'' is non-zero, plays the sound with ID found at bank ''B1'' and address ''I''. The direction of the sound can also be specified, with 0 indicating the left speaker and FF indicating the right speaker, although for the sound to play at the center, the value is at approximately 0x40.