summaryrefslogtreecommitdiff
path: root/basic/source
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-03-30 14:55:24 +0100
committerThorsten Behrens <tbehrens@suse.com>2013-04-03 10:24:40 +0000
commit47664d3f2e12649d324b031ca6ffd5589fe3d197 (patch)
treeafb6f467c5e055c34d342f8d3f45c728bb890aba /basic/source
parentd719c01c2f112d97b09aee008f9bfee57719eeed (diff)
fdo#58807 bring Beep() for basic back
The functionality was removed by fdo#48549. This partially reverts 0f6101cfef4c2e45d9f1f1b3a61ef94799e4526b 0bdf6fc7c71c4c49e6d6f83d56ac953272ad16d5 85cb9084533605657aca0394afe4516058a8e4ef I changed the behavior to always beep, because only the basic macro function is using Beep(). Looks like the Beep macro function didn't even work correctly before the removal, because the default was to not beep for most platforms. So I set the volume from disable (0) to 50% for XBell(). Change-Id: I663ffb7af75d2fd6d2c1f94073e4412d9744de4a Reviewed-on: https://gerrit.libreoffice.org/3124 Reviewed-by: Thorsten Behrens <tbehrens@suse.com> Tested-by: Thorsten Behrens <tbehrens@suse.com>
Diffstat (limited to 'basic/source')
-rw-r--r--basic/source/runtime/methods.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index 211618a4b544..f368ee2ca6cc 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -22,6 +22,7 @@
#include <osl/process.h>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
+#include <vcl/sound.hxx>
#include <tools/wintypes.hxx>
#include <vcl/msgbox.hxx>
#include <basic/sbx.hxx>
@@ -4226,6 +4227,7 @@ RTLFUNC(Beep)
StarBASIC::Error( SbERR_BAD_ARGUMENT );
return;
}
+ Sound::Beep();
}
RTLFUNC(Load)