comparison src/ntplay.c @ 408:501cfd01ee6d r21-2-34

Import from CVS: tag r21-2-34
author cvs
date Mon, 13 Aug 2007 11:18:11 +0200
parents b8cc9ab3f761
children de805c49cfc1
comparison
equal deleted inserted replaced
407:ed6218a7d4d3 408:501cfd01ee6d
16 You should have received a copy of the GNU General Public License 16 You should have received a copy of the GNU General Public License
17 along with XEmacs; see the file COPYING. If not, write to the Free 17 along with XEmacs; see the file COPYING. If not, write to the Free
18 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 18 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19 02111-1307, USA.*/ 19 02111-1307, USA.*/
20 20
21 #include <windows.h>
22 #include <config.h> 21 #include <config.h>
23 #include <stdio.h> 22 #include <stdio.h>
24 #include "sysfile.h" 23 #include "sysfile.h"
24 #include "syswindows.h"
25 #include "lisp.h" 25 #include "lisp.h"
26 #include "nativesound.h" 26 #include "nativesound.h"
27 27
28 #if (defined (__CYGWIN32__) || defined(__MINGW32__)) && \
29 CYGWIN_VERSION_DLL_MAJOR < 21
30 extern BOOL WINAPI PlaySound(LPCSTR,HMODULE,DWORD);
31 #else
32 #include <mmsystem.h>
33 #endif
34 static int play_sound_data_1 (unsigned char *data, int length, 28 static int play_sound_data_1 (unsigned char *data, int length,
35 int volume, int convert); 29 int volume, int convert);
36 30
37 void play_sound_file (char *sound_file, int volume) 31 void play_sound_file (char *sound_file, int volume)
38 { 32 {