LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   alsa card (https://www.linuxquestions.org/questions/linux-software-2/alsa-card-687543/)

dracayr 12-01-2008 04:42 PM

alsa card
 
hi,

on my LFS system, I managed to get my speakers to produce some output like this:

speaker-test -Dhw:2 -c2

it won't work if the number of channels is lower or higher.

Now I want to make that Device (hw:2) to be the default card alsa uses. I tried to use mplayer by using that device and two channels (mplayer /path/to/audioFile.mp3 -ao alsa:device=hw=2 -channels 2), but it only says "could not initialize audio device". And as you see, I have to set alsa manually as the audio driver, is there some way to configure this? I don't have a /dev/dsp file, why is that??

EDIT: OK, I figured out how to set the card default, so that it works with speaker-test, but it still doesn't work with mplayer. Before I set this card default, a "virtual MIDI card" was default, and mplayer managed to load that, and play, but of course I couldn't hear anything. Now mplayer says could not open/initialize audio device :( I have a ubuntu installation on the same machine, and the sound works there..

dracayr

nickkaelber 12-07-2008 09:59 PM

Hello, dracayr.

I'm not sure what is going on but I suggest finding and installing Xine, if you can find it.
It may be the mplayer just doesn't like your speakers...changing the program might work.

nick.


All times are GMT -5. The time now is 07:09 AM.