comparison src/audio/dma/SDL_dmaaudio.c @ 1361:19418e4422cb

New configure-based build system. Still work in progress, but much improved
author Sam Lantinga <slouken@libsdl.org>
date Thu, 16 Feb 2006 10:11:48 +0000
parents c71e05b4dc2e
children d910939febfa
comparison
equal deleted inserted replaced
1360:70a9cfb4cf1b 1361:19418e4422cb
31 #include <sys/types.h> 31 #include <sys/types.h>
32 #include <sys/time.h> 32 #include <sys/time.h>
33 #include <sys/ioctl.h> 33 #include <sys/ioctl.h>
34 #include <sys/stat.h> 34 #include <sys/stat.h>
35 #include <sys/mman.h> 35 #include <sys/mman.h>
36 #ifdef OSS_USE_SOUNDCARD_H 36
37 #include "SDL_config.h"
38
39 #if SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H
37 /* This is installed on some systems */ 40 /* This is installed on some systems */
38 #include <soundcard.h> 41 #include <soundcard.h>
39 #else 42 #else
40 /* This is recommended by OSS */ 43 /* This is recommended by OSS */
41 #include <sys/soundcard.h> 44 #include <sys/soundcard.h>
45 #define MAP_FAILED ((Uint8 *)-1) 48 #define MAP_FAILED ((Uint8 *)-1)
46 #endif 49 #endif
47 50
48 #include "SDL_timer.h" 51 #include "SDL_timer.h"
49 #include "SDL_audio.h" 52 #include "SDL_audio.h"
50 #include "SDL_audiomem.h" 53 #include "../SDL_audio_c.h"
51 #include "SDL_audio_c.h" 54 #include "../SDL_audiodev_c.h"
52 #include "SDL_audiodev_c.h"
53 #include "SDL_dmaaudio.h" 55 #include "SDL_dmaaudio.h"
54 56
55 /* The tag name used by DMA audio */ 57 /* The tag name used by DMA audio */
56 #define DMA_DRIVER_NAME "dma" 58 #define DMA_DRIVER_NAME "dma"
57 59