From: Georges Landa <landa@cict.fr>
Subject: Testing a little program
Date: Wed, 11 Apr 2001 15:00:59 +0100 [thread overview]
Message-ID: <3AD4639B.34C1EA15@cict.fr> (raw)
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 <fcntl.h>
#include <sys/ioctl.h>
#include <linux/cdrom.h>
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
reply other threads:[~2001-04-11 14:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox