2007-04-16 13:28:29 +04:00
|
|
|
/*
|
2014-06-25 03:25:43 +04:00
|
|
|
* Copyright 2007-2014 Haiku, Inc. All rights reserved.
|
2007-04-16 13:28:29 +04:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
2013-02-07 06:05:00 +04:00
|
|
|
* Authors:
|
|
|
|
* Niels Sascha Reedijk, niels.reedijk@gmail.com
|
2014-06-25 03:25:43 +04:00
|
|
|
* John Scipione, jscipione@gmail.com
|
2013-02-07 06:05:00 +04:00
|
|
|
*
|
2007-04-16 13:28:29 +04:00
|
|
|
* Corresponds to:
|
2013-02-07 06:05:00 +04:00
|
|
|
* headers/os/support/Beep.h rev 19972
|
2013-09-15 13:26:54 +04:00
|
|
|
* src/kits/support/Beep.cpp rev 34602
|
2007-04-16 13:28:29 +04:00
|
|
|
*/
|
2013-02-07 06:05:00 +04:00
|
|
|
|
|
|
|
|
|
|
|
/////!!!!!! Note that the workings of the beep still aren't completely clear
|
|
|
|
///// and not completely implemented, so this needs revision if everything
|
|
|
|
///// is finished.
|
|
|
|
|
|
|
|
|
2011-08-10 01:46:13 +04:00
|
|
|
/*!
|
2013-02-07 06:05:00 +04:00
|
|
|
\file Beep.h
|
|
|
|
\ingroup support
|
2013-02-08 00:04:05 +04:00
|
|
|
\ingroup libbe
|
2013-02-07 06:05:00 +04:00
|
|
|
\brief Functions to generate sounds from the computer.
|
2014-06-25 03:25:43 +04:00
|
|
|
|
|
|
|
\since BeOS R3
|
2007-03-02 16:36:32 +03:00
|
|
|
*/
|
|
|
|
|
2013-02-07 06:05:00 +04:00
|
|
|
|
2007-03-02 16:36:32 +03:00
|
|
|
/*!
|
2013-02-07 06:05:00 +04:00
|
|
|
\addtogroup support_globals
|
2007-03-02 16:36:32 +03:00
|
|
|
*/
|
|
|
|
|
2013-02-07 06:05:00 +04:00
|
|
|
|
2007-04-16 13:28:29 +04:00
|
|
|
//! @{
|
|
|
|
|
2011-08-10 01:46:13 +04:00
|
|
|
|
2013-02-07 06:05:00 +04:00
|
|
|
/*!
|
|
|
|
\fn status_t beep()
|
|
|
|
\brief Invoke the standard system beep to alert users.
|
2014-06-25 03:25:43 +04:00
|
|
|
|
2011-08-10 01:46:13 +04:00
|
|
|
From Beep.h and in libbe.so.
|
2014-06-25 03:25:43 +04:00
|
|
|
|
2011-08-10 01:46:13 +04:00
|
|
|
\see system_beep() and add_system_beep_event()
|
2014-06-25 03:25:43 +04:00
|
|
|
|
|
|
|
\since BeOS R3
|
2007-03-02 16:36:32 +03:00
|
|
|
*/
|
|
|
|
|
2011-08-10 01:46:13 +04:00
|
|
|
|
2013-02-07 06:05:00 +04:00
|
|
|
/*!
|
|
|
|
\fn status_t system_beep(const char* eventName)
|
|
|
|
\brief Invokes the sound for event \a eventName.
|
2014-06-25 03:25:43 +04:00
|
|
|
|
2011-08-10 01:46:13 +04:00
|
|
|
You can add the events using add_system_beep_event().
|
|
|
|
From Beep.h and in libbe.so.
|
2014-06-25 03:25:43 +04:00
|
|
|
|
|
|
|
\since BeOS R5
|
2007-03-02 16:36:32 +03:00
|
|
|
*/
|
|
|
|
|
2011-08-10 01:46:13 +04:00
|
|
|
|
2013-02-07 06:05:00 +04:00
|
|
|
/*!
|
|
|
|
\fn status_t add_system_beep_event(const char* eventName, uint32 flags = 0)
|
|
|
|
\brief Adds an event to the media server.
|
2014-06-25 03:25:43 +04:00
|
|
|
|
2011-08-10 01:46:13 +04:00
|
|
|
Call this method to add a specific event to the media server.
|
|
|
|
From Beep.h and in libbe.so.
|
2014-06-25 03:25:43 +04:00
|
|
|
|
2011-08-10 01:46:13 +04:00
|
|
|
\param eventName The name of the event.
|
|
|
|
\param flags Currently unused. Pass \c 0.
|
2014-06-25 03:25:43 +04:00
|
|
|
|
|
|
|
\since BeOS R5
|
2007-03-02 16:36:32 +03:00
|
|
|
*/
|
|
|
|
|
2013-02-07 06:05:00 +04:00
|
|
|
|
2011-08-10 01:46:13 +04:00
|
|
|
//! @}
|