From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,94b2d5eb323d7a06,start X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2001-04-11 06:01:30 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!falcon.america.net!sunqbc.risq.qc.ca!newsfeeds.belnet.be!news.belnet.be!opentransit.net!jussieu.fr!unilim.fr!news.cict.fr!not-for-mail From: Georges Landa Newsgroups: comp.os.linux.alpha Subject: Testing a little program Date: Wed, 11 Apr 2001 15:00:59 +0100 Organization: Inconnue Message-ID: <3AD4639B.34C1EA15@cict.fr> NNTP-Posting-Host: ramansco.ups-tlse.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.cict.fr 986993859 26779 130.120.88.103 (11 Apr 2001 12:57:39 GMT) X-Complaints-To: postmaster@cict.fr NNTP-Posting-Date: 11 Apr 2001 12:57:39 GMT X-Mailer: Mozilla 4.76 [en] (X11; U; SunOS 5.6 sun4u) X-Accept-Language: en Xref: supernews.google.com comp.os.linux.alpha:2673 Dear all, I have a problem with my CD audio on my RedHat7.0 Alpha PSW 500a I look for people with the same config who accept to test this little program with an audio CD. It works fine with my RedHat6.1 586 computer BUT does not with my RedHat 7.0 Alpha system : /* Begin of the source */ #include #include #include main() { int d, trk0, trk1; struct cdrom_ti cmd; printf("Enter first track to play : "); scanf("%d",&trk0); printf("Enter last track to play : "); scanf("%d",&trk1); cmd.cdti_ind0 = 1; cmd.cdti_ind1 = 1; cmd.cdti_trk0 = trk0; cmd.cdti_trk1 = trk1; d = open ("/dev/cdrom", O_RDONLY| O_NONBLOCK); if (d<=0) printf("d=%d\n",d); ioctl (d, CDROMPLAYTRKIND, &cmd); close(d); } /* End of the source */ cordially, Georges -- Georges Landa Tel :(33) 05 61 55 65 49, Fax : (33) 05 61 55 62 33 Lab. de Physique des solides, associe au CNRS, UMR5477 Universite Paul Sabatier email : landa@cict.fr 118 route de Narbonne URL : http://www.lpst.ups-tlse.fr 31062 Toulouse cedex, France http://www.lpst.ups-tlse.fr/SFP/sfpmidi.html