LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Libao error: Error Opening Device (https://www.linuxquestions.org/questions/programming-9/libao-error-error-opening-device-226201/)

dahuja76 09-03-2004 12:17 PM

Libao error: Error Opening Device
 
Hi All,

I am working with libao audio library and wants to play a wav file via libao library. I have Avance Logic 4000 sound card and I have build and installed Kernel 2.6.8 on my machine. I am using ALSA Version 1.04 which comes in built with Kernel 2.6.8.
I am able to see "snd_als4000" module loaded in the Kernel and able to play .wav file with aplay command and able to manage the volume control via amixer command.

But when I try to execute the sample code i.e. ao_example which comes along with libao tarball file. the source code gives me an error "Error Opening Device" in the function ao_driver_id. Can anyone suggest me who to play .wav file using libao library via ALSA drivers.

I have tried ao_driver_id("alsa09") and ao_driver_id("alsa10") but both doesn't works. Please guide me over this issue.


Regards
Dinesh


All times are GMT -5. The time now is 08:32 AM.