of_playsound


pfcapsrv.pbl   >   pfc_n_cst_platformunicode   >   of_playsound   

Full name pfc_n_cst_platformunicode.of_playsound
Access public
Extend of integer
Return value integer
Prototype public function integer of_playsound(string)

Name Datatype
No Data

Name Datatype
lul_numdevs ulong

public function integer of_playsound (string as_file);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_PlaySound
//
//	Access:  public
//
//	Arguments: as_file - sound file to play
//
//
//	Returns:  integer
//
//	Description:  Play a sound file
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	5.0   Initial version
//	5.0.03	Changed Uint variable to Ulong for NT4.0 compatibility
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////
ulong lul_numdevs

lul_numdevs = WaveOutGetNumDevs() 
If lul_numdevs > 0 Then 
	sndPlaySoundW(as_file, 1)
	return 1
Else
	return -1
End If

end function

     
Name Owner
No Data

     
Name Owner
pfc_n_cst_platformunicode.sndPlaySoundW pfc_n_cst_platformunicode
pfc_n_cst_platformunicode.waveOutGetNumDevs pfc_n_cst_platformunicode

     
Full name
No Data

     
Name Scope
No Data