Fix IO memory access .. SB128 driver makes noises in VMWare - CMI is untested (Curren...
[AROS.git] / workbench / c / Beep.c
blob0c02aa5794443dd3b614cdfa39c801c9c25f60a2
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Beep
6 Lang: English
7 */
9 /*****************************************************************************
11 NAME
12 Beep
14 FORMAT
15 Beep
17 SYNOPSIS
19 LOCATION
22 FUNCTION
23 BEEP produces a beep via Intuition DisplayBeep(NULL).
25 EXAMPLE
27 SEE ALSO
29 ******************************************************************************/
31 #include <proto/exec.h>
32 #include <dos/dos.h>
33 #include <intuition/intuition.h>
34 #include <intuition/intuitionbase.h>
35 #include <proto/intuition.h>
36 #include <intuition/screens.h>
38 const TEXT version[] = "$VER: Beep 41.2 (03.03.2011)";
40 AROS_ENTRY(__startup static ULONG, Start,
41 AROS_UFHA(char *, argstr, A0),
42 AROS_UFHA(ULONG, argsize, D0),
43 struct ExecBase *, SysBase)
45 AROS_USERFUNC_INIT
47 struct IntuitionBase *IntuitionBase;
49 IntuitionBase = (struct IntuitionBase *)OpenLibrary("intuition.library", 0);
50 if (!IntuitionBase)
51 return RETURN_FAIL;
53 DisplayBeep( NULL );
55 CloseLibrary(&IntuitionBase->LibNode);
56 return RETURN_OK;
58 AROS_USERFUNC_EXIT