На Wed, 17 Oct 2007 17:27:35 +0200
Bob van Loosen <[EMAIL PROTECTED]> записано:

> I dug around a bit in the code, the problem is Cinelerra scans alsa 
> devices starting at hw:0 and going up until a device can't be opened.
>  From that information it builds a list of alsa devices which you can 
> select in the preferences.
> When audio playback starts, Cinelerra cross-references the selected 
> audio device with the existing audio devices so it knows which device
> to open, hw:1,0 for example.
> If the device in the dropdown box in the preferences window doesn't 
> exist in the list, Cinelerra selects the default alsa device.

=======8<-------

> Now it opens the alsa device with the name you enter in the dropdown
> box. However, I have no idea if this will make surround sound work.
> 
> Greetings,
> 
> Bob van Loosen

I made diff file. Hope someone will apply it to svn trunk.
With this patch cinelerra works with surround40 alsa device as well.

-- 
Вск Ноя  4 10:43:20 KRAT 2007
Sun Nov  4 03:43:20 UTC 2007
----------------------------------
Visit my home page http://www.akhil.nm.ru
(Last update at 2th Nov 23:30)
----------------------------------
jabber: [EMAIL PROTECTED]
----------------------------------
Позволь эмоциям быть твоей энергией на пути в бесконечность.
Ахметгалеев Ильдар aka AkhIL
----------------------------------
Linux artstation 2.6.22-gentoo-r9 #1 PREEMPT Wed Oct 31 12:31:08 KRAT
2007 i686 AMD Athlon(tm) XP 2500+ AuthenticAMD GNU/Linux up 2 days,
17:05,  8 users,  load average: 0.55, 0.73, 0.63
--- cinelerra/audioalsa.C.bak	2007-11-04 10:33:04.000000000 +0700
+++ cinelerra/audioalsa.C	2007-11-04 10:36:06.000000000 +0700
@@ -271,7 +271,7 @@
 	translate_name(pcm_name, device->in_config->alsa_in_device);
 //printf("AudioALSA::open_input %s\n", pcm_name);
 
-	err = snd_pcm_open(&dsp_in, pcm_name, stream, open_mode);
+	err = snd_pcm_open(&dsp_in, device->in_config->alsa_in_device, stream, open_mode);
 
 	if(err < 0)
 	{
@@ -300,7 +300,7 @@
 
 	translate_name(pcm_name, device->out_config->alsa_out_device);
 
-	err = snd_pcm_open(&dsp_out, pcm_name, stream, open_mode);
+	err = snd_pcm_open(&dsp_out, device->out_config->alsa_out_device, stream, open_mode);
 
 	if(err < 0)
 	{

Reply via email to