[MPlayer-users] Re: MPlayer consumes 30% of my Athlon XP 2200! plz help help lower this!
Tobias Diedrich
ranma at gmx.at
Mon Dec 15 11:02:16 CET 2003
rcooley wrote:
> > BTW, all modern soundcards support multiple opens,
> Well then, why can't two OSS/ALSA apps run at the same time? I've got
> plenty of modern sound cards, and the same old one-device at-a-time
> limitation.
With ALSA you can set up the dmix plug:
---------- .asoundrc --------------
pcm.mix {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 8192
rate 44100
format "S16_LE"
#periods 128
}
bindings {
0 0 # from 0 => to 0
1 1 # from 1 => to 1
}
}
pcm.!default {
type plug
slave.pcm "mix"
}
pcm.dsp0 pcm.default
---------- end of .asoundrc -------
And then use mplayer -ao alsa9:mix if your sound hardware doesn't
support hardware mixing.
--
/* Tobias */ int main(int a,char **b) /* PGP: http://9ac7e0bc.2ya.com */
{char i,j,t,*r=*++b;srand(getpid());for(;*r;){for(;*r&&!isalpha(*r);r++);for(i=
1;isalpha(r[i+1]);i++){j=rand()%i;t=r[i];r[i]=r[++j];r[j]=t;}r+=i+1;}puts(*b);}
More information about the MPlayer-users
mailing list