xref: /haiku/headers/os/media/PlaySound.h (revision 2f470aec1c92ce6917b8a903e343795dc77af41f)
1 /******************************************************************************
2 
3 	File:			PlaySound.h
4 
5 	Description:	Interface for a simple beep sound.
6 
7 	Copyright 1995-97, Be Incorporated
8 
9 ******************************************************************************/
10 #ifndef _PLAY_SOUND_H
11 #define _PLAY_SOUND_H
12 
13 #ifndef _BE_BUILD_H
14 #include <BeBuild.h>
15 #endif
16 #include <OS.h>
17 #include <Entry.h>
18 
19 typedef sem_id sound_handle;
20 
21 _IMPEXP_MEDIA
22 sound_handle play_sound(const entry_ref *soundRef,
23 						bool mix,
24 						bool queue,
25 						bool background
26 						);
27 
28 _IMPEXP_MEDIA
29 status_t stop_sound(sound_handle handle);
30 
31 _IMPEXP_MEDIA
32 status_t wait_for_sound(sound_handle handle);
33 
34 #endif			/* #ifndef _PLAY_SOUND_H*/
35