* Testing a little program
@ 2001-04-11 14:00 Georges Landa
0 siblings, 0 replies; only message in thread
From: Georges Landa @ 2001-04-11 14:00 UTC (permalink / 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-04-11 14:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-11 14:00 Testing a little program Georges Landa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox