Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Dual Sound Cards, Getting a volume control for dual cards< Next Oldest | Next Newest >
spanners Offline





Group: Members
Posts: 9
Joined: Jan. 2006
Posted: Mar. 13 2008,20:46 QUOTE

Hi There
I was just wondering if anyone knew of a volume application that would control two sound cards at once.
I've got two fitted as I'm playing streaming content out of one whist encoding audio from the other and it's working great except the levels are off.
Dmix seg faults when I try to adjust levels for my secondary card and aumix doesn't see it.
Any help would be gratefully appreciated
John
Back to top
Profile PM 
andrewb Offline





Group: Members
Posts: 316
Joined: July 2005
Posted: Mar. 13 2008,22:43 QUOTE

Which version of DSl are you using. DMIX has issues with dual soundcards, in that it when there are channels with the same name on both soundcards they both get changed at the same time. I did have a modified version (pre-murgaLUA) which worked well with dual sound card systems (in fact it would deal with any number of sound cards, but John Andrews found it seg faulted when the volume was changed repeatedly (must have been a lot of times as I never encountered the problem). The work-around John has implemented at present in DMIX for dual sound cards doesn't solve the problem for duplicate channel names.

If you want I can post the code I had for using multiple sound cards, but it will need to be converted for the MurgaLUA scripting language now used in DSL.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Mar. 14 2008,01:12 QUOTE

Quote
John Andrews found it seg faulted when the volume was changed repeatedly (must have been a lot of times as I never encountered the problem)
It may have been a situation where he was using a slider to change the volume. The default of a FLTK slider is to do its callback every time it's moved, which is many many times when you drag it back and forth rapidly...a good way to check for problems in a slider's callback


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
andrewb Offline





Group: Members
Posts: 316
Joined: July 2005
Posted: Mar. 14 2008,02:20 QUOTE

Quote (mikshaw @ Mar. 13 2008,10:12)
It may have been a situation where he was using a slider to change the volume. The default of a FLTK slider is to do its callback every time it's moved, which is many many times when you drag it back and forth rapidly...a good way to check for problems in a slider's callback

So far as I know this was the situation which caused the seg fault. It didn't do so in his original script. The only difference at this point in the script was how the device being altered was referenced. I had to add a few lines to sort out which mixer the device was controlled through. When a volume change is made the current DMIX executes umix for each mixer in turn, with the relevant device name. John has assumed in this approach that the same device name doesn't appear on multiple mixers. In the case of my Libretto there is a MIC device on both the mixers - one is the built-in mono microphone & the other is the external stereo plug-in. Adjusting MIC in the current DMIX alters both of these simultaneously, making the control somewhat useless as normally the internal microphone should be off (muted) when using an external microphone.

I haven't yet got round to converting my revised version of DMIX to MurgaLUA to use in the current version of DSL.
Back to top
Profile PM 
spanners Offline





Group: Members
Posts: 9
Joined: Jan. 2006
Posted: Mar. 16 2008,12:24 QUOTE

Quote (andrewb @ Mar. 13 2008,17:43)
Which version of DSl are you using.

I'm using DSL 3.0


Quote (andrewb @ Mar. 13 2008,17:43)

If you want I can post the code I had for using multiple sound cards, but it will need to be converted for the MurgaLUA scripting language now used in DSL.


It would be great if you could post your code but I know very little about converting scripting languages...
Back to top
Profile PM 
7 replies since Mar. 13 2008,20:46 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Dual Sound Cards

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code