Remove built-in speaker support
The changes to amiga, mac and msdos builds are untested.
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "hack.h" /* to get flags */
|
||||
#include "mttypriv.h"
|
||||
#if !TARGET_API_MAC_CARBON
|
||||
#include <Sound.h>
|
||||
#include <Resources.h>
|
||||
#endif
|
||||
|
||||
@@ -324,6 +325,19 @@ do_set_port_font(tty_record *record)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
tty_nhbell(void)
|
||||
{
|
||||
Handle h = GetNamedResource('snd ', "\pNetHack Bell");
|
||||
|
||||
if (h) {
|
||||
HLock(h);
|
||||
SndPlay((SndChannelPtr) 0, (SndListHandle) h, 0);
|
||||
ReleaseResource(h);
|
||||
} else
|
||||
SysBeep(30);
|
||||
}
|
||||
|
||||
/*
|
||||
* Fill in some fields from some other fields that may have changed
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user