Files
nethack/sys/winnt/ntsound.c
nethack.allison 6bebdbb135 win32 USER_SOUNDS
This uses pmatch() as a default pattern matcher,
and #defines USER_SOUNDS_REGEX for Qt
to enable the code for regular expressions.

This is enabled for win32tty and win32gui.
2002-09-02 23:28:54 +00:00

29 lines
793 B
C

/* SCCS Id: @(#)ntsound.c 3.4 $Date$ */
/* Copyright (c) NetHack PC Development Team 1993 */
/* NetHack may be freely redistributed. See license for details. */
/* */
/*
* ntsound.c - Windows NT NetHack sound support
*
*Edit History:
* Initial Creation 93/12/11
*
*/
#include "hack.h"
#include "win32api.h"
#include <mmsystem.h>
#ifdef USER_SOUNDS
void play_usersound(filename, volume)
const char* filename;
int volume;
{
/* pline("play_usersound: %s (%d).", filename, volume); */
(void)sndPlaySound(filename, SND_ASYNC | SND_NODEFAULT);
}
#endif /*USER_SOUNDS*/
/* ntsound.c */