Date: Fri, 18 Feb 2000 15:18:11 -0600 (CST) From: Ryan Thompson <freebsd@sasknow.com> To: Kevin Oberman <oberman@es.net> Cc: freebsd-questions@freebsd.org Subject: Re: Can't access CD-ROM for audio Message-ID: <Pine.BSF.4.10.10002181515260.88477-100000@sasknow.com> In-Reply-To: <200002181858.KAA10726@ptavv.es.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 18 Feb 2000, Kevin Oberman wrote:
> Thanks! I was foolishly assuming that the "cooked" file device was not
> appropriate to playing music. I should have at least tried.
Yes... On a side note, you may notice some problems with kscd (KDE
CD player) playing ATAPI CDs. I did, and found the following patches to
be of use:
*** plat_freebsd.c Mon May 17 14:07:34 1999
--- plat_freebsd.c Sun Oct 24 19:20:18 1999
***************
*** 248,258 ****
break;
case CD_AS_PLAY_COMPLETED:
! *mode = TRACK_DONE; /* waiting for next track. */
break;
case CD_AS_NO_STATUS:
! case 0:
*mode = STOPPED;
break;
}
--- 248,259 ----
break;
case CD_AS_PLAY_COMPLETED:
! *mode = STOPPED;
! /* *mode = TRACK_DONE; /* waiting for next track. */
break;
case CD_AS_NO_STATUS:
! case CD_AS_AUDIO_INVALID:
*mode = STOPPED;
break;
}
***************
*** 368,378 ****
msf.end_s = (end % (60*75)) / 75;
msf.end_f = end % 75;
if (ioctl(d->fd, CDIOCSTART))
return (-1);
! if (ioctl(d->fd, CDIOCPLAYMSF, &msf))
! return (-2);
return (0);
}
--- 369,383 ----
msf.end_s = (end % (60*75)) / 75;
msf.end_f = end % 75;
+ #if 0
if (ioctl(d->fd, CDIOCSTART))
return (-1);
+ #endif
! if (ioctl(d->fd, CDIOCPLAYMSF, &msf)) {
! perror("ioctl(CDIOPLAYMSF)");
! return (-2);
! }
return (0);
}
--
Ryan Thompson <ryan@sasknow.com> 50% Owner, Sysadmin
SaskNow Technologies http://www.sasknow.com
#106-380 3120 8th St E Saskatoon, SK S7H 0W2
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10002181515260.88477-100000>
