Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Apr 2004 13:34:58 +0700
From:      Max Khon <fjoe@samodelkin.net>
To:        deischen@freebsd.org
Cc:        sos@freebsd.org
Subject:   Re: CDIOCREADAUDIO ?
Message-ID:  <20040407063458.GB59267@samodelkin.net>
In-Reply-To: <Pine.GSO.4.10.10404061904050.26002-100000@pcnet5.pcnet.com>
References:  <Pine.GSO.4.10.10404061904050.26002-100000@pcnet5.pcnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello!

On Tue, Apr 06, 2004 at 07:06:51PM -0400, Daniel Eischen wrote:

> So a few months ago, sos removed CDIOCREADAUDIO from <sys/cdio.h>.
> Now that I'm porting the latest xmcd, it wants to use that
> command.  Why was it removed and what is its replacement?

There was another method for reading audio data:
reading /dev/acd0[c] directly (e.g. using pread(2)).

Look at ports/audio/cdparanoia/files/patch-interface-cooked_interface.c.
Please note that this patch uses #ifdef's but it is not necessary because
using pread works perfectly in RELENG_4 (an dmaybe earlier, I did not check).

Regards,

/fjoe



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040407063458.GB59267>