2007-04-16 13:28:29 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2007, Haiku, Inc. All Rights Reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
* Documentation by:
|
|
|
|
* Niels Sascha Reedijk <niels.reedijk@gmail.com>
|
|
|
|
* Corresponds to:
|
|
|
|
* /trunk/headers/os/support/Beep.h rev 19972
|
|
|
|
* /trunk/src/kits/support/Beep.cpp rev 20711
|
|
|
|
*/
|
|
|
|
|
|
|
|
/////!!!!!! Note that the workings of the beep still aren't completely clear
|
|
|
|
///// and not completely implemented, so this needs revision if everything
|
|
|
|
///// is finished.
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\file Beep.h
|
|
|
|
\brief Functions to generate sounds from the computer.
|
2007-03-02 16:36:32 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*!
|
2007-04-16 13:28:29 +04:00
|
|
|
\addtogroup support_globals
|
2007-03-02 16:36:32 +03:00
|
|
|
*/
|
|
|
|
|
2007-04-16 13:28:29 +04:00
|
|
|
//! @{
|
|
|
|
|
2007-03-02 16:36:32 +03:00
|
|
|
/*!
|
2007-04-16 13:28:29 +04:00
|
|
|
\fn status_t beep()
|
|
|
|
\brief Invoke the standard system beep to alert users.
|
2007-03-02 16:36:32 +03:00
|
|
|
|
2007-04-16 13:28:29 +04:00
|
|
|
From Beep.h and in libbe.so.
|
|
|
|
|
|
|
|
\see system_beep() and add_system_beep_event()
|
2007-03-02 16:36:32 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*!
|
2007-04-16 13:28:29 +04:00
|
|
|
\fn status_t system_beep(const char* eventName)
|
|
|
|
\brief Invokes the sound for event \a eventName.
|
|
|
|
|
|
|
|
You can add the events using add_system_beep_event().
|
2007-03-02 16:36:32 +03:00
|
|
|
|
2007-04-16 13:28:29 +04:00
|
|
|
From Beep.h and in libbe.so.
|
2007-03-02 16:36:32 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*!
|
2007-04-16 13:28:29 +04:00
|
|
|
\fn status_t add_system_beep_event(const char* eventName, uint32 flags = 0)
|
|
|
|
\brief Adds an event to the media server.
|
|
|
|
|
|
|
|
Call this method to add a specific event to the media server.
|
|
|
|
|
|
|
|
From Beep.h and in libbe.so.
|
|
|
|
|
|
|
|
\param eventName The name of the event.
|
|
|
|
\param flags Currently unused. Pass \c 0.
|
2007-03-02 16:36:32 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
//! @}
|