Hi!

I have a default SuSE 7.1 installation which provides the alsa sound
system.

I understand that ALSA and OSS have the same programming interface, but
the device names (given as parameters to ioctl())  are different.

The following code:

  char *device = "/dev/dsp";
  if ( (audio_fd = open(device, O_WRONLY, 0)) == -1 ) {
    perror(device); // 
    exit(1);
  }

produces the following output: "/dev/dsp: No such device", probably 
because /dev/dsp is an OSS thing.

How do I procede to write most portable code?
Do I need the snd-pcm1-oss module?

Thanks if you can help,
Catalin


        <<<< ================================== >>>>
        <<     We are what we repeatedly do.      >>
        <<  Excellence, therefore, is not an act  >>
        <<             but a habit.               >>
        <<<< ================================== >>>>

Reply via email to