haiku/headers/os/media/PlaySound.h

24 lines
431 B
C

/*
* Copyright 2009, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _PLAY_SOUND_H
#define _PLAY_SOUND_H
#include <OS.h>
#include <Entry.h>
typedef sem_id sound_handle;
sound_handle play_sound(const entry_ref* soundRef, bool mix, bool queue,
bool background);
status_t stop_sound(sound_handle handle);
status_t wait_for_sound(sound_handle handle);
#endif // _PLAY_SOUND_H