Mercurial > sdl-ios-xcode
view docs/index.html @ 1138:fcfb783a3ca2
Commercial-OSS-on-Solaris patch...
--ryan.
Date: Sun, 14 Aug 2005 23:06:40 -0500
From: Shawn Walker <binarycrusader@gmail.com>
To: sdl@libsdl.org
Subject: [SDL] [PATCH] Audio Detection Bug
When using the OSS commercial drivers under Solaris 10, SDL will not
properly initialise OSS audio support (dsp) if /dev/sound exists.
Under Solaris (as far as I understand) /dev/sound is provided as a
means of accessing a BSD style audio device, not the OSS device.
SDL assumes that if /dev/sound exists, then it must be running on a
Linux 2.4 system and should make the dsp device path /dev/sound/dsp.
This is wrong. When using the OSS commercial drivers under Solaris,
the dsp device is always referenced as /dev/dsp normally.
My proposed fix is to stat the dsp device in /dev/sound to make sure
it exists, before assuming /dev/sound/dsp as the audio device:
http://icculus.org/~eviltypeguy/SDL_audiodev.patch
I'm sure there may be a better way to do it, but the above patch is
what worked for me.
--=20
Shawn Walker, Software and Systems Analyst
binarycrusader@gmail.com - http://binarycrusader.blogspot.com/
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Thu, 08 Sep 2005 07:15:44 +0000 |
parents | 74212992fb08 |
children | 14717b52abc0 |
line wrap: on
line source
<!DOCTYPE HTML PUBLIC "-//Norman Walsh//DTD DocBook HTML 1.0//EN"> <HTML ><HEAD ><TITLE >Introduction</TITLE > </HEAD ><BODY BGCOLOR="#FFF8DC" TEXT="#000000" LINK="#0000ee" VLINK="#551a8b" ALINK="#ff0000" ><DIV CLASS="NAVHEADER" > <HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="PREFACE" ><H1 ><A NAME="AEN8" >Introduction</A ></H1 ><P >This library is designed to make it easy to write games that run on Linux, Win32 and BeOS using the various native high-performance media interfaces, (for video, audio, etc) and presenting a single source-code level API to your application. This is a fairly low level API, but using this, completely portable applications can be written with a great deal of flexibility.</P ><P >The library is loaded as a dynamically linked library on its native platform, and is currently compiled natively for Linux, compiled for Win32 using a Linux hosted GCC <A HREF="http://www.libsdl.org/Xmingw32/" TARGET="_top" >cross-compilation</A > environment, and compiled using the EGCS C++ compiler under BeOS.</P ><P >An introduction to SDL can be found online at: <A HREF="http://www.libsdl.org/intro/toc.html" TARGET="_top" >http://www.libsdl.org/intro/</A > </P ><P >There are code examples on each of the main library pages, and there are fully fleshed example C++ classes and programs in the examples archive, available on the <A HREF="http://www.libsdl.org/download.html" TARGET="_top" >SDL download page</A >.</P ><P >For an introduction to basic multi-media programming concepts, you might try some of the following links: <P ></P ><UL ><LI ><P ><A HREF="http://www.ziron.com/links/" TARGET="_top" >Game Programming Links</A ></P ></LI ><LI ><P ><A HREF="http://developer.dungeon-crawl.com/" TARGET="_top" >Game Developer Search Engine</A ></P ></LI ></UL ></P ><P >Enjoy!</P ><P > Sam Lantinga <TT CLASS="EMAIL" ><<A HREF="mailto:slouken@libsdl.org" ><A HREF="mailto:slouken@libsdl.org" TARGET="_top" >slouken@libsdl.org</A ></A >></TT ></P > <P> <br><br><HR> <H1>Table of Contents</H1> <UL> <LI><A HREF="html/index.html">Full Table of Contents</A></LI> <LI><A HREF="html/guide.html">The SDL Guide</A></LI> <LI><A HREF="html/reference.html">The SDL Reference</A></LI> <UL> <LI><A HREF="html/general.html">Initialization</A></LI> <LI><A HREF="html/video.html">Video</A></LI> <LI><A HREF="html/wm.html">Window Manager</A></LI> <LI><A HREF="html/event.html">Event Handling</A></LI> <LI><A HREF="html/joystick.html">Joystick</A></LI> <LI><A HREF="html/audio.html">Audio</A></LI> <LI><A HREF="html/cdrom.html">CDROM</A></LI> <LI><A HREF="html/thread.html">Threads</A></LI> <LI><A HREF="html/time.html">Timers</A></LI> </UL> </UL> </DIV ></BODY ></HTML >