Home » SQL & PL/SQL » SQL & PL/SQL » sound
sound [message #36740] Sun, 16 December 2001 10:03 Go to next message
sara
Messages: 36
Registered: February 2000
Member
how could I add sound on my form, please explain step by step.

----------------------------------------------------------------------
Re: sound [message #36755 is a reply to message #36740] Tue, 18 December 2001 00:02 Go to previous messageGo to next message
RajuKVG
Messages: 13
Registered: December 2001
Junior Member
Use the Play_sound built in provided in forms if u are using forms 6 or above... else u got to use win api package . this library is available after default installation of forms. d2kwin.pll or some thing similar to it.. u can get the pll name from forms help.Attach this to u'r form and there are number of methods in that thru which u can use different windows functions,such as opening sound item and open dailog box ,save dailog box etc... using play_sound built in .. it is much easier...
here is the example for it..

/* Example 1: This procedure call (attached to a menu item)

** plays a sound object from the specified sound item:
*/
GO_ITEM('about.abc_inc');
PLAY_SOUND('about.abc_inc');

/* Example 2: These procedure calls (attached to a
** When-Button-Pressed trigger) read a sound object from the
** file system and play it. Note: since an item must have focus
** in order to play a sound, the trigger code includes a call
** to the built-in procedure GO_ITEM:
*/
BEGIN
IF :clerks.last_name EQ 'BARNES' THEN
GO_ITEM('orders.filled_by');
READ_SOUND_FILE('t:ordersclerkbarnes.wav',
'wave',
'orders.filled_by');
PLAY_SOUND('orders.filled_by');
END IF;
END;

this should help u.

----------------------------------------------------------------------
Re: sound [message #36759 is a reply to message #36740] Tue, 18 December 2001 05:40 Go to previous message
sara
Messages: 36
Registered: February 2000
Member
raju,
thank u.
i still have not tried it.
if i get some problem I will trouble u again.

----------------------------------------------------------------------
Previous Topic: .nextval in Insert Statement
Next Topic: where I should store de key?
Goto Forum:
  


Current Time: Thu Mar 28 14:51:40 CDT 2024