OSDN Git Service

Initial Import
[nethackexpress/trunk.git] / sys / wince / cesound.c
1 /*   SCCS Id: @(#)cesound.c   3.4     $Date: 2003/02/13 12:35:27 $                        */
2 /*   Copyright (c) NetHack PC Development Team 1993                 */
3 /*   NetHack may be freely redistributed.  See license for details. */
4 /*                                                                  */
5 /*
6  * cesound.c - Windows CE NetHack sound support
7  *                                                  
8  *
9  */
10
11 #include "hack.h"
12 #include <mmsystem.h>
13
14 #ifdef USER_SOUNDS
15
16 void play_usersound(filename, volume)
17 const char* filename;
18 int volume;
19 {
20         TCHAR wbuf[MAX_PATH+1];
21 /*    pline("play_usersound: %s (%d).", filename, volume); */
22         ZeroMemory(wbuf, sizeof(wbuf));
23         (void)sndPlaySound(NH_A2W(filename, wbuf, MAX_PATH), SND_ASYNC | SND_NODEFAULT);
24 }
25
26 #endif /*USER_SOUNDS*/
27 /* cesound.c */