Date: Sat, 26 Sep 2009 12:39:51 +0200 From: Hans Petter Selasky <hselasky@c2i.net> To: freebsd-current@freebsd.org, mav@freebsd.org Subject: Re: 8-current + USB CD-ROM drive + CAM layer audio extraction from CD Message-ID: <200909261239.52792.hselasky@c2i.net>
next in thread | raw e-mail | index | archive | help
Hi, It turns out the xmms is not able to read audio from CD's due to a removed IOCTL. cdparanoia is however able to read audio from CD's after a recompile including libcam. static int cdrom_read_audio(int cdfd, int lba, char *buf, int btw) { int rtr = 3; do { struct ioc_read_audio ira; ira.buffer = buf; ira.nframes = btw; ira.address_format = CD_MSF_FORMAT; ira.address.msf.minute = lba / (75 * 60); ira.address.msf.second = (lba / 75) % 60; ira.address.msf.frame = lba % 75; if (ioctl(cdfd, CDIOCREADAUDIO, &ira) >= 0) return ira.nframes; } while (--rtr >= 0); return -1; } The "CDIOCREADAUDIO" is not implemented in the FreeBSD 8/9-current kernel from what I can see. --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909261239.52792.hselasky>