|
of_playsound
|
|
Full name
|
pfc_n_cst_platform.of_playsound
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_playsound(string,boolean)
|
Name
|
Datatype
|
li_rc
|
Integer
|
public function integer of_playsound (string as_file, boolean ab_beeponfailure);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_PlaySound
//
// Access: public
//
// Arguments:
// as_file - sound file to play
// ab_beeponfailure - Play a beep if the requested sound fails.
//
// Returns: integer
//
// Description: Play a sound file
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 6.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1997 Sybase, Inc. and its subsidiaries. All rights reserved.
// Any distribution of the PowerBuilder Foundation Classes (PFC)
// source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
Integer li_rc
// Play the sound.
li_rc = of_playsound(as_file)
// Confirm that the sound was played succesfully.
If li_rc <= 0 Then
// Play a default beep.
beep(1)
End If
Return li_rc
end function