Mercurial > sdl-ios-xcode
comparison src/audio/windib/SDL_dibaudio.c @ 1330:450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
using Visual C++ 2005
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 06 Feb 2006 08:28:51 +0000 |
parents | c9b51268668f |
children | 3692456e7b0f |
comparison
equal
deleted
inserted
replaced
1329:bc67bbf87818 | 1330:450721ad5436 |
---|---|
20 slouken@libsdl.org | 20 slouken@libsdl.org |
21 */ | 21 */ |
22 | 22 |
23 /* Allow access to a raw mixing buffer */ | 23 /* Allow access to a raw mixing buffer */ |
24 | 24 |
25 #include <stdio.h> | 25 #include "SDL_windows.h" |
26 #include <stdlib.h> | |
27 #include <windows.h> | |
28 #include <mmsystem.h> | 26 #include <mmsystem.h> |
29 | 27 |
30 #include "SDL_audio.h" | 28 #include "SDL_audio.h" |
31 #include "SDL_mutex.h" | 29 #include "SDL_mutex.h" |
32 #include "SDL_timer.h" | 30 #include "SDL_timer.h" |
31 #include "SDL_stdlib.h" | |
32 #include "SDL_string.h" | |
33 #include "SDL_audio_c.h" | 33 #include "SDL_audio_c.h" |
34 #include "SDL_dibaudio.h" | 34 #include "SDL_dibaudio.h" |
35 #if defined(_WIN32_WCE) && (_WIN32_WCE < 300) | 35 #if defined(_WIN32_WCE) && (_WIN32_WCE < 300) |
36 #include "win_ce_semaphore.h" | 36 #include "win_ce_semaphore.h" |
37 #endif | 37 #endif |
123 char errbuf[MAXERRORLENGTH]; | 123 char errbuf[MAXERRORLENGTH]; |
124 #ifdef _WIN32_WCE | 124 #ifdef _WIN32_WCE |
125 wchar_t werrbuf[MAXERRORLENGTH]; | 125 wchar_t werrbuf[MAXERRORLENGTH]; |
126 #endif | 126 #endif |
127 | 127 |
128 sprintf(errbuf, "%s: ", function); | 128 snprintf(errbuf, SDL_arraysize(errbuf), "%s: ", function); |
129 len = strlen(errbuf); | 129 len = strlen(errbuf); |
130 | 130 |
131 #ifdef _WIN32_WCE | 131 #ifdef _WIN32_WCE |
132 /* UNICODE version */ | 132 /* UNICODE version */ |
133 waveOutGetErrorText(code, werrbuf, MAXERRORLENGTH-len); | 133 waveOutGetErrorText(code, werrbuf, MAXERRORLENGTH-len); |