delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/04/26/13:11:08

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Thu, 26 Apr 2001 10:11:53 +0100 (GMT Daylight Time)
From: "Sagar R. Shah" <Sagar DOT Shah AT sid DOT cam DOT ac DOT uk>
To: Andy Younger <andylyounger AT hotmail DOT com>
cc: <cygwin AT cygwin DOT com>
Subject: Re: mpg123 patch
In-Reply-To: <F14IfpT8vWyu9kstC7t000097a9@hotmail.com>
Message-ID: <Pine.WNT.4.33.0104260957500.-469059@srs29.sid.cam.ac.uk>
X-X-Sender: srs29 AT imap DOT hermes DOT cam DOT ac DOT uk
MIME-Version: 1.0

On Thu, 26 Apr 2001, Andy Younger wrote:
> Nope,
>
> the /dev/dsp device is one of the services that the Open Sound System (OSS)
> provides on linux/FreeBSD etc. That functionality is partially emulated in
> cygwin now.
>
> /usr/include/sys/soundcard.h
>
> is the header file, that contains all the appropriate definitions, ioctl's
> etc.

I was hoping you would say something like that

> With this patch, mpg123 should just compile & work. Fingers crossed :-)
>
> Let us know how you get on.

followed the same instructions as before

it's looking for machine/soundcard.h   (well audio_oss is)
rather than sys/soundcard.h

i don't know much about c at all, but possibly do u need to modify your
patch to correct this ifdef block in audio_oss.c ?

======
#ifdef LINUX
#include <linux/soundcard.h>
#elif defined(__bsdi__)
#include <sys/soundcard.h>
#else
#include <machine/soundcard.h>
#endif
=======

I was a bit lazy, so i just replaced the whole #ifdef block with just:

#include <sys/soundcard.h>

after that it compiled just fine and plays just fine from what i can tell
:-)

If you're agreeable i could post the fixed version of your patch up to the
little cygwin section on my website.

Thanks for the quick repsonse.

Sagar


--------------------------------------------------------------------------
Sagar R. Shah                 www: http://www.netnexus.co.uk/
Sidney Sussex College         www: http://www.netnexus.uklinux.net/
Cambridge, CB2 3HU
--------------------------------------------------------------------------



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019