From 1cab99bc1083849d92a53e92a4e384b9b3014788 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 9 Dec 2009 17:56:51 +0000 Subject: [PATCH] Apparently someone forgot to commit something. Build fix hack. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34600 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/support/Beep.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/kits/support/Beep.cpp b/src/kits/support/Beep.cpp index 1dceba865d..53b1f64288 100644 --- a/src/kits/support/Beep.cpp +++ b/src/kits/support/Beep.cpp @@ -1,4 +1,4 @@ -/* +/* ** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. ** Copyright 2007, Jérôme Duval. All rights reserved. ** Distributed under the terms of the Haiku License. @@ -15,13 +15,15 @@ status_t system_beep(const char *eventName) { +// TODO: Axel, fix me! +static const uint32 MEDIA_ADDON_SERVER_PLAY_MEDIA = 0; BMessenger messenger("application/x-vnd.Be.addon-host"); if (!messenger.IsValid()) return B_ERROR; BMessage msg(MEDIA_ADDON_SERVER_PLAY_MEDIA), reply; msg.AddString(MEDIA_NAME_KEY, eventName ? eventName : MEDIA_SOUNDS_BEEP); msg.AddString(MEDIA_TYPE_KEY, MEDIA_TYPE_SOUNDS); - + status_t err = messenger.SendMessage(&msg, &reply); if ((err != B_OK) || (reply.FindInt32("error", &err) != B_OK)) @@ -47,7 +49,7 @@ add_system_beep_event(const char *name, uint32 flags) msg.AddString(MEDIA_NAME_KEY, name); msg.AddString(MEDIA_TYPE_KEY, MEDIA_TYPE_SOUNDS); msg.AddInt32(MEDIA_FLAGS_KEY, flags); - + status_t err = messenger.SendMessage(&msg, &reply); if ((err != B_OK) || (reply.FindInt32("error", &err) != B_OK))