initial commit
This commit is contained in:
22
bepascal/source/bepascal/pas/src/be/media/playsound.pp
Normal file
22
bepascal/source/bepascal/pas/src/be/media/playsound.pp
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
unit PlaySound;
|
||||||
|
// Description: Interface for a simple beep sound.
|
||||||
|
|
||||||
|
interface
|
||||||
|
|
||||||
|
uses
|
||||||
|
Entry, OS, SupportDefs;
|
||||||
|
|
||||||
|
type
|
||||||
|
sound_handle = sem_id;
|
||||||
|
|
||||||
|
function play_sound(const soundRef : Pentry_ref; mix : Boolean; queue : Boolean;
|
||||||
|
background : Boolean) : sound_handle;
|
||||||
|
cdecl; external 'media' name 'play_sound';
|
||||||
|
function stop_sound(handle : sound_handle) : status_t;
|
||||||
|
cdecl; external 'media' name 'stop_sound';
|
||||||
|
function wait_for_sound(handle : sound_handle) : status_t;
|
||||||
|
cdecl; external 'media' name 'wait_for_sound';
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
end.
|
||||||
Reference in New Issue
Block a user