11.01.2013 Views

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

READ_SOUND_FILE built-in<br />

Description<br />

Reads sound object from the specified file into the specified sound item.<br />

Syntax<br />

READ_SOUND_FILE(file_name VARCHAR2,<br />

file_type VARCHAR2,<br />

item_id ITEM);<br />

READ_SOUND_FILE(file_name VARCHAR2,<br />

file_type VARCHAR2,<br />

item_name VARCHAR2);<br />

Built-in Type<br />

unrestricted<br />

Enter Query Mode Yes<br />

Parameters:<br />

file_name The fully-qualified file name of the file that contains the sound object to be<br />

read.<br />

file_type The file type for the sound data file. Valid values are: AU, AIFF, AIFF-C,<br />

and WAVE. (Note: file type is optional, but should be specified if known<br />

for increased performance.)<br />

item_id The unique ID <strong>Form</strong> <strong>Builder</strong> gave the sound item when you created it.<br />

item_name The name you gave the sound item when you created it.<br />

Usage Notes<br />

• Specifying a file type for the sound file is optional. If you know the file type, however, specifying it<br />

can increase performance.<br />

READ_SOUND_FILE restrictions<br />

READ_SOUND_FILE examples<br />

/* These procedure calls (attached to a When-Button-Pressed<br />

** trigger) reads a sound object from the file system and plays<br />

** it. Note: since a sound item must have focus in order to play<br />

** a sound object, the trigger code includes a call to the<br />

** built-in procedure GO_ITEM:<br />

*/<br />

BEGIN<br />

IF :clerks.last_name EQ ’BARNES’ THEN<br />

GO_ITEM(’orders.filled_by’);<br />

READ_SOUND_FILE(’t:\orders\clerk\barnes.wav’,<br />

’wave’,<br />

’orders.filled_by’);<br />

PLAY_SOUND(’orders.filled_by’);<br />

END IF;<br />

333

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!