[ltp] sound card mixing

flokno linux-thinkpad@linux-thinkpad.org
Tue, 23 Dec 2003 21:27:48 +0100


hello!

On Tue, 2003-12-23 at 20:45, gustavo wrote:
> Thank
> I fix my problem partially, I was install the 'package audiooss' and 
> after define the variables

i use alsa output plugins in xine, mplayer, ...
programs need to use the alsa api, not the /dev/sound oss(?) api. that's
why vmware doesn't work (quake3 or unreal also) here too but its better
than nothing.

i think alsa will be standard for all progs in the not so far future...

> "AUDIOSERVER=tcp/localhost:8000" and 
> "LD_PRELOAD=/usr/lib/audiooss/libaudiooss.so"
> xmms work OK with the mixer. I still have problems with mplayer and with 
> VmWare.
>   So I will try your solution, but I have some questions:
>    1:- I haven't the file /etc/asound.conf, so create it ?

yes.

>    1.2:- Who call this file /etc/asound.conf ??

its a file for the alsa driver.

>    2:- in the places that you wrote  "hw" (like in pcm "hw:0.0")
>         I also need to write "hw" or I  need write my hostname ??

no, i guess hw means hardware and not hostname. my hostname is lap.

> 
>   Finally
>    Thank you very much
>          Gusti
> flokno wrote:
> 
> >i have it working with kernel 2.6.0 on my r40 - i810 with
> >
> >flokno@lap flokno $ cat /etc/asound.conf
> >pcm.!default {
> >    type plug
> >    slave.pcm "dmixer"
> >}
> >
> >pcm.dsp0 {
> >    type plug
> >    slave.pcm "dmixer"
> >}
> >
> >pcm.dmixer  {
> >    type dmix
> >    ipc_key 1024
> >    slave {
> >        pcm "hw:0,0"
> >        period_time 0
> >        period_size 1024
> >        buffer_size 8192
> >        #periods 128
> >        rate 44100
> >    }
> >    bindings {
> >        0 0
> >        1 1
> >    }
> >}
> >
> >ctl.mixer0 {
> >    type hw
> >    card 0
> >}
> >
> >mixes fine with kde and xmms or centericq and mplayer and stuff.
> >don't ask my where i got the above snippet.
> >
> >On Tue, 2003-12-23 at 18:25, Steve Krulewitz wrote:
> >  
> >
> >>Another option is to use alsa's dmix plugin:
> >>
> >>http://www.alsa-project.org/alsa-doc/doc-php/asoundrc.php3#softmix
> >>
> >>but I could never get this to work ;)
> >>
> >>cheers,
> >>-steve
> >>    
> >>
> >
> >  
> >
> 
> -- 
> Regards.
> gustavo halperin
> _________________________________________
> Laboratory for Computer Graphics and CAD
> Faculty of Mechanical Engineering
> Technion - Israel Institute of Technology
> Haifa, Israel 32000
> 
> Tel:      972-4-829-2334
> Fax:    972-4-829-5711
> e-mail: gustavoh@tx.technion.ac.il <mailto:gustavoh@tx.technion.ac.il>
> _________________________________________