Skip to content
Permalink
Browse files

Added an audio driver that writes to disk (thanks Ryan!)

  • Loading branch information
Sam Lantinga
Sam Lantinga committed Jun 16, 2001
1 parent 8ca59e0 commit 0070d29e34948a9a4efb71fa0160f20597694ec9
@@ -368,6 +368,21 @@ CheckNAS()
fi
}


dnl rcg07142001 See if the user wants the disk writer audio driver...
CheckDiskAudio()
{
AC_ARG_ENABLE(diskaudio,
[ --enable-diskaudio support the disk writer audio driver [default=no]],
, enable_diskaudio=no)
if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
CFLAGS="$CFLAGS -DDISKAUD_SUPPORT"
AUDIO_SUBDIRS="$AUDIO_SUBDIRS disk"
AUDIO_DRIVERS="$AUDIO_DRIVERS disk/libaudio_disk.la"
fi
}


dnl See if we can use x86 assembly blitters
CheckNASM()
{
@@ -1085,6 +1100,7 @@ case "$target" in
*-*-linux*)
ARCH=linux
CheckDummyVideo
CheckDiskAudio
CheckNASM
CheckOSS
CheckALSA
@@ -1151,6 +1167,7 @@ case "$target" in
*-*-bsdi*)
ARCH=bsdi
CheckDummyVideo
CheckDiskAudio
CheckNASM
CheckOSS
CheckARTSC
@@ -1194,6 +1211,7 @@ case "$target" in
*-*-freebsd*)
ARCH=freebsd
CheckDummyVideo
CheckDiskAudio
CheckNASM
CheckOSS
CheckARTSC
@@ -1246,6 +1264,7 @@ case "$target" in
*-*-netbsd*)
ARCH=netbsd
CheckDummyVideo
CheckDiskAudio
CheckNASM
CheckOSS
CheckARTSC
@@ -1297,6 +1316,7 @@ case "$target" in
*-*-openbsd*)
ARCH=openbsd
CheckDummyVideo
CheckDiskAudio
CheckNASM
CheckOSS
CheckARTSC
@@ -1345,6 +1365,7 @@ case "$target" in
*-*-sysv5*)
ARCH=sysv5
CheckDummyVideo
CheckDiskAudio
CheckNASM
CheckOSS
CheckARTSC
@@ -1392,6 +1413,7 @@ case "$target" in
ARCH=solaris
CFLAGS="$CFLAGS -D__ELF__" # Fix for nasm on Solaris x86
CheckDummyVideo
CheckDiskAudio
CheckNASM
CheckOSS
CheckARTSC
@@ -1438,6 +1460,7 @@ case "$target" in
*-*-irix*)
ARCH=irix
CheckDummyVideo
CheckDiskAudio
CheckNAS
CheckX11
CheckAAlib
@@ -1496,6 +1519,7 @@ case "$target" in
*-*-hpux*)
ARCH=hpux
CheckDummyVideo
CheckDiskAudio
CheckOSS
CheckNAS
CheckX11
@@ -1540,6 +1564,7 @@ case "$target" in
*-*-aix*)
ARCH=aix
CheckDummyVideo
CheckDiskAudio
CheckOSS
CheckNAS
CheckX11
@@ -1583,6 +1608,7 @@ case "$target" in
*-*-osf*)
ARCH=osf
CheckDummyVideo
CheckDiskAudio
CheckNAS
CheckX11
CheckGGI
@@ -1626,6 +1652,7 @@ case "$target" in
*-*-qnx*)
ARCH=qnx
CheckDummyVideo
CheckDiskAudio
CheckNAS
CheckPHOTON
CheckX11
@@ -1680,6 +1707,7 @@ case "$target" in
fi
fi
CheckDummyVideo
CheckDiskAudio
CheckWIN32
CheckDIRECTX
CheckNASM
@@ -1736,6 +1764,7 @@ case "$target" in
ARCH=beos
ac_default_prefix=/boot/develop/tools/gnupro
CheckDummyVideo
CheckDiskAudio
CheckNASM
CheckBWINDOW
CheckBeGL
@@ -1781,6 +1810,7 @@ case "$target" in
# for which this case would be handy.
ARCH=macos
CheckDummyVideo
CheckDiskAudio
CheckTOOLBOX
CheckMacGL
# Set up files for the main() stub
@@ -1824,6 +1854,7 @@ case "$target" in
# config.guess comes back with "darwin", so go with the flow.
ARCH=macos
CheckDummyVideo
CheckDiskAudio
CheckCARBON
CheckMacGL
CheckPTHREAD
@@ -1973,6 +2004,7 @@ src/audio/sun/Makefile
src/audio/ums/Makefile
src/audio/windib/Makefile
src/audio/windx5/Makefile
src/audio/disk/Makefile
src/video/Makefile
src/video/cybergfx/Makefile
src/video/x11/Makefile
@@ -16,6 +16,7 @@ <H2>
Major changes since SDL 1.0.0:
</H2>
<UL>
<LI> 1.2.1: Added an audio driver that writes to disk (thanks Ryan!)
<LI> 1.2.1: Mouse wheel sends mouse button (4/5) events on Windows
<LI> 1.2.1: Added MacOS X Project Builder projects (thanks Darrell!)
<LI> 1.2.1: Added initial support for Quartz video (thanks Darrell!)
@@ -5,8 +5,7 @@ noinst_LTLIBRARIES = libaudio.la

# Define which subdirectories need to be built
SUBDIRS = @AUDIO_SUBDIRS@
DIST_SUBDIRS = alsa arts baudio dma dmedia dsp esd macrom nas nto \
openbsd paudio sun ums windib windx5
DIST_SUBDIRS = alsa arts baudio dma dmedia dsp esd macrom nas nto openbsd paudio sun ums windib windx5 disk

DRIVERS = @AUDIO_DRIVERS@

@@ -81,7 +81,9 @@ static AudioBootStrap *bootstrap[] = {
#ifdef ENABLE_AHI
&AHI_bootstrap,
#endif

#ifdef DISKAUD_SUPPORT
&DISKAUD_bootstrap,
#endif
NULL
};
SDL_AudioDevice *current_audio = NULL;
@@ -140,6 +140,9 @@ extern AudioBootStrap SNDMGR_bootstrap;
#ifdef ENABLE_AHI
extern AudioBootStrap AHI_bootstrap;
#endif
#ifdef DISKAUD_SUPPORT
extern AudioBootStrap DISKAUD_bootstrap;
#endif

/* This is the current audio device */
extern SDL_AudioDevice *current_audio;
@@ -0,0 +1,6 @@
Makefile.in
Makefile
.libs
*.o
*.lo
*.la
@@ -0,0 +1,9 @@

## Makefile.am for SDL audio "driver" that writes to a file.

noinst_LTLIBRARIES = libaudio_disk.la
libaudio_disk_la_SOURCES = $(SRCS)

# The SDL audio driver sources
SRCS = SDL_diskaudio.c \
SDL_diskaudio.h

0 comments on commit 0070d29

Please sign in to comment.