hi all I wanted an application to open /dev/dsp and write bytes from a wav file . In line with this ,i had used the following ioctl calls appropriately in my program . Please note that the codei hav used below below is from a open source application which i found on the internet. arg=sampling size;/*like 8 or 16 bits*/ status = ioctl(fd, SOUND_PCM_WRITE_BITS, &arg); arg=channels;/*1 for mono,2 for stereo*/ status = ioctl(fd, SOUND_PCM_WRITE_CHANNELS, &arg); arg = rate; /* sampling rate */ status = ioctl(fd, SOUND_PCM_WRITE_RATE, &arg); /* wait for playback to complete before recording again */ status = ioctl(fd, SOUND_PCM_SYNC, 0); At first the program worked well. However ,on rebooting the computer my application failed to run.--i got an invalid ioctl command for SOUND_PCM_WRITE_BITS. Moreover ,on trying to use mpg123 to play a mp3 file i got the following error:- SNDCTL_DSP_SETFRAGMENT: Inappropriate ioctl for device I do not undertstand what is wrong. Did my previous ioctl calls change some variables in soundcard.h? Can anybody out there help me? Regards Prakash Gs _______________________________________________ Redhat-devel-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-devel-list