comparison src/audio/disk/SDL_diskaudio.c @ 1341:d02b552e5304

Configure dynamically generates SDL_config.h I'm still wrestling with autoheader, but this should work for now... Fixed lots of build problems with C library support disabled
author Sam Lantinga <slouken@libsdl.org>
date Tue, 07 Feb 2006 12:11:33 +0000
parents 604d73db6802
children c71e05b4dc2e
comparison
equal deleted inserted replaced
1340:58b114ef50e7 1341:d02b552e5304
24 */ 24 */
25 25
26 /* Output raw audio data to a file. */ 26 /* Output raw audio data to a file. */
27 27
28 #include <stdio.h> 28 #include <stdio.h>
29 #include <string.h> /* For strerror() */
29 #include <errno.h> 30 #include <errno.h>
30 #include <unistd.h> 31 #include <unistd.h>
31 #include <sys/stat.h> 32 #include <sys/stat.h>
32 #include <sys/types.h> 33 #include <sys/types.h>
33 #include <sys/stat.h> 34 #include <sys/stat.h>
128 return(0); 129 return(0);
129 } 130 }
130 SDL_memset(this->hidden, 0, (sizeof *this->hidden)); 131 SDL_memset(this->hidden, 0, (sizeof *this->hidden));
131 132
132 envr = SDL_getenv(DISKENVR_WRITEDELAY); 133 envr = SDL_getenv(DISKENVR_WRITEDELAY);
133 this->hidden->write_delay = (envr) ? atoi(envr) : DISKDEFAULT_WRITEDELAY; 134 this->hidden->write_delay = (envr) ? SDL_atoi(envr) : DISKDEFAULT_WRITEDELAY;
134 135
135 /* Set the function pointers */ 136 /* Set the function pointers */
136 this->OpenAudio = DISKAUD_OpenAudio; 137 this->OpenAudio = DISKAUD_OpenAudio;
137 this->WaitAudio = DISKAUD_WaitAudio; 138 this->WaitAudio = DISKAUD_WaitAudio;
138 this->PlayAudio = DISKAUD_PlayAudio; 139 this->PlayAudio = DISKAUD_PlayAudio;