xref: /haiku/headers/os/media/PlaySound.h (revision 02354704729d38c3b078c696adc1bbbd33cbcf72)
1 /*
2  * Copyright 2009, Haiku, Inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _PLAY_SOUND_H
6 #define _PLAY_SOUND_H
7 
8 #include <OS.h>
9 #include <Entry.h>
10 
11 
12 typedef sem_id sound_handle;
13 
14 
15 sound_handle play_sound(const entry_ref* soundRef, bool mix, bool queue,
16 	bool background);
17 
18 status_t stop_sound(sound_handle handle);
19 
20 status_t wait_for_sound(sound_handle handle);
21 
22 
23 #endif // _PLAY_SOUND_H
24