Skip to contentSkip to conversation

ALSA and Libao libray error: Error Opening Device

DISCUSSION Dinesh Ahuja 1 participant 1 message Sep 4, 2004

lore
Share & tools
lore
#0 lore raw

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

________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click