[linux-audio-dev] ALSA => OSS compatibility

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: [linux-audio-dev] ALSA => OSS compatibility
From: Doru-Catalin Togea (doru-cat_AT_ifi.uio.no)
Date: Fri Mar 15 2002 - 18:10:38 EET


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. >>
        <<<< ================================== >>>>


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Fri Mar 15 2002 - 17:58:31 EET