aplay works but no sound coming out from my application

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I am very new to Alsa and I have been trying to configure my dedicated pc to
produce sound from its analog jack and from the jack located on the monitor
which is connected to the pc with display port. So I have the following
asonund.conf file.

pcm.multi {
        type multi;
        slaves.a.pcm "hw:0,3";
        slaves.a.channels 2;
        slaves.b.pcm "hw:1,0";
        slaves.b.channels 2;

        bindings.0.slave a;
        bindings.0.channel 0;
        bindings.1.slave a;
        bindings.1.channel 1;

        bindings.2.slave b;
        bindings.2.channel 0;
        bindings.3.slave b;
        bindings.3.channel 1;
}

pcm.!default {
	type plug
	slave.pcm multi
}

So with this configuration, if I run the following command line 

aplay -f cd -D default /usr/share/sounds/alsa/Front_Center.wav

it works like charm and I can hear the sound from both outputs. However,
when I run any application on the pc, it doesn't work anymore. I mean I hear
nothing. I did a lot of tests but no joy. No sound coming out whatsoever. I
have read that I should have alsa.conf file under /etc/modeprobe.d/ but I
don't have it. Could anyone tell me if I really need this file? If yes, what
should I type inside?

Or what could be the reason not to get any sound out from my applications?

Thanks.


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user




[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux