Multiple target datalines to multiple sound cards

Is there any way to accomplish the following:
I have 4 distinct sound cards. I am using 4 distinct target datalines (1 dataline per 1 microphone input), each in a separate thread, to sample sound.
Let me start with this question, is this scenario even possible with the current implementation of Java Sound?
If the microphones are in a linear array, spaced evenly apart, I would expect to see the the sound at the last microphone arrive after the sound of the first microphone. However, this does not always occur. This leads me to believe that one or more of the threads reading the target datalines is being starved.
I've checked for buffer overflows as follows:
          int internalBufferSize = tdl.getBufferSize();
                    if (internalBufferSize == tdl.available()) {
                     System.err.println("Buffer overflow detected!");
                     }I'm not getting any buffer overflow errors.
As an experiment, I've attempted to attach multiple target datalines to a single sound device. While that will work fine (i.e., Java doesn't complain), I notice that when I read the data from the target datalines, I'm only getting the data from one or the other lines, but NOT both at the same time. Even though this isn't the same scenario I proposed, is there something in the Java Sound implementation that will prevent one target dataline per sound device in a JVM?
I'm fairly new to Java Sound, and I'm at a complete loss. I've gotten the same solution to work in other languages, however, I need Java for this particular application.

Markus00000 wrote:
In
/etc/modprobe.d/alsa.conf
I put
options snd-hda-intel index=0
options snd-usb-audio index=1
If you give your default sound card index 0 and your USB camera a higher index, it might work.
Thanks a lot. This indeed solved the problem.
jmak

Similar Messages

  • Multiple sound cards and FP sessions

    I would like to provide multiple channels of AOL Radio to my
    company's telephone music-on-hold. My Windows XP workstation has an
    M-Audiio Delta 1010LT audio card with 4 integrated sound cards. In
    Windows Control Panel -> “Sounds & Audio
    Devices’ all 4 "cards" are shown and I can set any of them to
    the default audio device. An AOL Radio stream will use the default
    "card". If I open 2, 3, or 4 sessions, they *ALL* are
    simultaneously streamed to the default sound "card" – not the
    desired behavior! I can select any one of the 4 “cards”
    and assign it as default and as many AOL Radio Flash Player
    sessions that are running will stream to that default "card". Thus
    all four “cards” can render an audio stream.
    My question is this, Is there a mechanism to pair FP sessions
    with specific sound “cards”?
    Thanks for any help anyone can provide.

    Hi,
    It's hard to say what the cause is of your problem.  It may be that LabVIEW is looking at the default sound card in your system and ignores the rest.  This may happen if you are using the Play sound VIs.
    The way to achieve two outputsis by opening up the WAV
    file and use the Snd Write Waveform VI. One of the inputs for this VI
    is the device number. Usually they start at 0 and increment by one. You
    can have a VI where you open the 2 files and then use 2 write waveform
    vis using different device numbers.
    You can get all the
    information about the soundcards by calling the Windows SDK, however
    this can take some work and may be easier to do it in a DLL.
    Are you using the Sound and Vibration Toolkit?  If so what version?  What sound cards are you using and what version of Windows are you using?
    Regards,
    Nadim
    Applications Engineering
    National Instruments

  • [SOLVED] Multiple sound cards don't work with Arch

    Before you post, make sure you do not list any of these programs that I should use, to configure everything:
    alsamixer
    alsaconf
    kmix
    xfce4-mixer
    edit: I need to specify what my default sound device is as I have 2 different sound cards, a Logitech ClearChat Comfort, and a TurtleBeach AK-R8.
    Websites of my sound products:
    http://www.turtlebeach.com/products/akr8/home.aspx
    http://www.realtek.com.tw/products/prod … ProdID=135
    http://www.fatal1ty.com/products/scards/660.php
    http://www.logitech.com/index.cfm/webca … 1&cl=US,EN
    I use Windows for gaming (in virtualbox) on America's Army, so good audio is a must when you play against the best.
    The reason I state that is because those lack the features I need. I am trying to find gnome-sound-properties and since I needed sound working very fast, and a distro that already has it installed, I am currently on Ubuntu (please do not harass me or insult me about this as I hate it very much and I need to get back to software development) since all I need to do is go to System > Preferences > Sound. Is a picture of what I am looking for:
    Last edited by Neo_The_User (2009-09-27 23:28:38)

    Solved. all i needed to do was turn up the center and surround thing in alsamixer. works now in true 5.1

  • [SOLVED] multiple sound cards?

    Why i have two sounds cards in my system?
    bagheera@tux:~$ cat /proc/asound/cards
    0 [PCH ]: HDA-Intel - HDA Intel PCH
    HDA Intel PCH at 0xfa400000 irq 53
    1 [NVidia ]: HDA-Intel - HDA NVidia
    HDA NVidia at 0xfa080000 irq 17
    i don't have /etc/modprobe.d/alsa.conf file.
    My modbo is Asus P8H67-M EVO R3.0 and video card is GeForce GTX 460.
    nvidia card has 4 spdif channels. Is that 4 hdmi outputs in my GFX card? In fact it is 2xDVI an 1xhdmi
    Last edited by bagheera (2011-10-16 07:40:20)

    My system is similar;
    [ninez@ninez ~]$ cat /proc/asound/cards
    0 [NVidia ]: HDA-Intel - HDA NVidia
    HDA NVidia at 0xf9f78000 irq 21
    1 [NVidia_1 ]: HDA-Intel - HDA NVidia
    HDA NVidia at 0xfbffc000 irq 19
    I'm pretty sure the 2nd device is HDMI, but i haven't used it anyway, as i use an external audio interface.

  • Multiple Sound Cards

    I run sound out of my computer from two sources: the native sound card built into my motherboard, and an aftermarket device from Creative Labs called a Sound Blaster X-Fi Go. I use the output from my motherboard to run into my monitor's built-in speakers for regular tasks, and I use the output from the X-Fi to run into a stereo system.
    What I would like to do is to run the iTunes output directly into the stereo. However, I don't want to make my system default the X-Fi output, as I'd still like for regular computer sound (games and whatnot) to run through the monitor speakers. When using Windows Media Player for streaming music, I have an option to choose which output source I'd like for that particular program to use. However, I've been unable to locate the same option within iTunes. Does anyone have a solution to making iTunes use the secondary audio output instead of the default?

    A way of doing what i think you want is as follows.
    Create a GUI containing,
    1) A Jtable
    2) A Jlist
    3) buttons or menus or keylisteners (whichever you want to start your
    methods)
    Firstly the Jtable columns, should be
    1) Track Number (optional)
    2) File Name
    3) A ComboBox For Mixer
    First set up your Jtable to populate the ComboBox with the Mixers available on the system
    Second populate the Jlist with names of your mp3 files.
    Third add event listeners to either double click on mp3 file names to add them to the Jtable or use the mouse to do this, whichever you prefer.
    Then add your play/stop methods. It should go through the rows of the Jtable, checking the mp3 file name, and the mixer slected and then play it through the one ya want!
    IF you get this far, you can even add, mute, pan, gain and balance on each row easily enough.
    But first things first, if you want to go this way of doing it. Create the GUI , populate the combo box with the mixers and get the mp3 files listed.
    Then concentrate on getting the file name into the Jtable and finally get the music playing.
    It will take abit of research and head scratching but its very possible.

  • Multiple Sound Card for data acquisition gives read buffer error

    I am using 6 usb based sound cards for voltages and currents mearuments of a three phase delta system.. Hardware is working well. but in labview when i use builtin Input=>sound box for data acquisition it also works well upto 4 inputs... but when i use more i.e. 6 it starts giving error "cannt perform action, read buffer is full" some thing like this... som times it goes to "not responding"...i have tried to find the solution and found in another post of this fourm to varry the sampling rate... i did it upto 96000 that is maximum ... but still problem is same...i need to know, how to manually increase the read buffer. if not possible then.. is there any way that labview stop giving any type of error during simulation?

    thnx i hv solved that problem ... now there is another problem... i am getting all my signals in computer but problem comes when i use phase detector. it keep on showing different values in phase measurement block.. how can i manage the signal with correct phase. i cannt send code cz it has many VIs and they are spread in computer. so i am pasting come photos that are showing different. look in picture...it is from same signal and the phase is different..
    Attachments:
    Capturexcvxccxvxcvcxvvxcvxcv.JPG ‏11 KB
    Capturexcvxcvxcvxcv.JPG ‏11 KB

  • Multiple sound cards on one syst

    is that possible? to control different sound environments...
    If yes how many can I have on one system, what type of hardware/software to control it's
    I will like to have on Windows.
    Regards
    DonabDon

    does the store account list the distinct gift cards to select when making a purchase or automatically charge the cc on file?
    No.
    It charges gift cards first, then from CC.
    If you have different users, they should create their own iTunes account and add their gift cads to their own account.

  • Multiple sound car

    I am useing windows xp and it says I can use multiple sound cards. I was wondering if I could use multiple sound blaster li've cards in one machine? If so what is the limit of cards other than the number of slots on the motherboard.
    Mike

    I was told the same thing about putting identical cards in a computer would be a problem. I think mostly because of address, irq, and driver conflicts. Right now I have an old sound blaster card from my hp computer installed into a mother board running Win XP with no problems yet but I have not been able to play around with it yet.
    My recording software will let me set the input device. I have to get set up with two audio sources to see if I can record tracks with each sound card at one time. This will tell me that everything is ok. But these are two different audio devices and many people have said they have had no problems doing this.
    I am also wondering about the audio controll panel. If two sound devices can coexist how do you control the other inputs on each card. Like the cd in, aux audio, mic. s/pdif ect. Doses each card get its own audio mixer panel?
    Right now an earlier post claims to be able to use both cards of the same type.
    Mike

  • Want to use 2 sound cards

    I have been checking around and have noticed on some of the web cast sites that there are possibility in using multiple sound cards on one machine. The basic functionality is possible pending IRQ and BIOS settings.
    I currently have an older SBLive Platinum W/ Live drive and have tweaked it out pretty nicely for basic I/O.
    I was capable of getting most of the routing possibilitys working on that EMU Chipset with an opensource program I found a while back along with the Audigy drivers. I would like to keep using the card and the bay. Could revert very easily back to the original software and drivers.
    Enter problem........
    I have been made aware of the possibility that the X-Fi Platinum is "in the cards" for X-Mas. And I am intrigued by the newer functionality. Then I start thinkin' see....
    2 bays
    2 cards
    2 midi in
    2 midi out
    2 headphone
    etc. etc. etc.
    What about 2 seperate sets of control software that is used for each card. Main output from one, monitor output from the other. Control room out from one, Tape out out the other. ASIO, ASIO, ASIO Hmmm.
    I have no experience using two cards in one machine but considering I was given' the first card to begin with and now I may be gettin' a second one of higher quality I wonder If anyone has any data concerning the 2 card issue.
    Thanks for any responses in advance.

    Hey....
    Interesting that this post has a view of 77 and the response I get is a question...... but cool.
    I will try to help.
    Not that familiar with the 2000 Platform but I would start by doing a full uninstall of the current drivers and software for the SB Platinum. Download the LiveDrive-Uni Pack from the update link. Getting rid of your old audio drivers is a fairly importaant step.
    http://us.creative.com/support/downloads/downloadive
    Then DL the software if you want all that stuff.
    I remember that when I first started fiddling with this unit I had a similiar situation where I could not get the audio on the front bay to function properly.
    I think the driver update took care of the issue.
    At any rate .... I have just done a clean install of XP, got the video card screamin, and I am going to re-install the Platinum with the drive tonight. I am going to try with a minimum of the bundled software so driver and AudioHQ with Creative mixer are about all I am interested in.
    The Emu 10kx drivers are supported on this card as well as the Audigy, with that said the Kx drivers from Lugosoft might be of interest if you cant get the Creative stuff working.
    I will post again with the process if all goes well.
    There is a whole slew of settings that could go wrong with this IMHO 'GLITCHY' card.
    I am gonna' get it to work with the new X-FI If my life depends on it.
    http://kxproject.lugosoft.com/index.php?skip=1

  • [Solved] Alsa Sound Card Numbering Not Persistant Between Boots

    Hello,
    I'm having trouble with alsa and my multiple sound cards. Sometimes when I boot, I get the following output from "aplay -l"
    **** List of PLAYBACK Hardware Devices ****
    card 0: SB [HDA ATI SB], device 0: ALC889A Analog [ALC889A Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: SB [HDA ATI SB], device 1: ALC889A Digital [ALC889A Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 2: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    However, I also see this after other boots:
    **** List of PLAYBACK Hardware Devices ****
    card 1: SB [HDA ATI SB], device 0: ALC889A Analog [ALC889A Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: SB [HDA ATI SB], device 1: ALC889A Digital [ALC889A Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 2: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    Because the card numbering is not consistant, I'm having a great deal of trouble (if the card is 0, then I don't need an asoundrc, but if it's 1, I do). It also breaks my volume panel applet for the alsa card number to often change (volumeicon - from the AUR). Is there a way to force a certain device to always be card number 0?
    Thanks for any help.
    -Sean
    Last edited by szim90 (2012-01-15 02:01:54)

    Thank you for your response, karol.
    I ran 'udevadm info -a -p /sys/class/sound/card1/' as was able to get the following information:
    looking at device '/devices/pci0000:00/0000:00:14.2/sound/card1':
    KERNEL=="card1"
    SUBSYSTEM=="sound"
    DRIVER==""
    ATTR{id}=="SB"
    ATTR{number}=="1"
    looking at parent device '/devices/pci0000:00/0000:00:14.2':
    KERNELS=="0000:00:14.2"
    SUBSYSTEMS=="pci"
    DRIVERS=="snd_hda_intel"
    ATTRS{vendor}=="0x1002"
    ATTRS{device}=="0x4383"
    ATTRS{subsystem_vendor}=="0x1458"
    ATTRS{subsystem_device}=="0xa102"
    ATTRS{class}=="0x040300"
    ATTRS{irq}=="16"
    ATTRS{local_cpus}=="00000000,0000000f"
    ATTRS{local_cpulist}=="0-3"
    ATTRS{numa_node}=="0"
    ATTRS{dma_mask_bits}=="64"
    ATTRS{consistent_dma_mask_bits}=="64"
    ATTRS{broken_parity_status}=="0"
    ATTRS{msi_bus}==""
    looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""
    I'm completely new to writing udev rules; would the proper procedure be to write something like this:
    DEVPATH=="/devices/pci0000:00/0000:00:14.2/sound/card*" ATTRS{number}="0"
    or will that happen too late in the boot process (after the card has already been assigned a number)?
    Perhaps it would be easier to work through alsa itself? I know I can get sound consistantly by calling out the card in asoundrc:
    pcm.!default { type hw card SB }
    ctl.!default { type hw card SB }
    But this seems to disable dmix (software mixing). Is there a way to re-enable dmix from the asoundrc (and would that be easier than trying to work in udev)?
    Regards,
    Sean

  • Sound card detection - simple solution

    Hello,
    this goes to all who are interested. The question how to detect a sound card was brought up in the past, and I found a quite simple way to do it. To my knowledge, this was not posted before.
    The following code returns true if a sound card is present and enabled. I tested it on a couple of machines, and it seems to work just fine. It even works in Applets.
    import javax.sound.sampled.*;
    private boolean detectSoundcard() {
    Line.Info il = new Line.Info(TargetDataLine.class);
    return AudioSystem.isLineSupported(il);
    } // detectSoundCard
    Comments are very welcome,
    Stefan

    I am trying to do the same sort of thing but with multiple sound cards. Do you by any chance know how to get a list of available sound cards on a machine and then choose which card the player will use? Your help is appreciated.

  • Lost the ability to play multiple sounds!

    Since switching to archlinux, the only problem that I am unable solve is the inablity to play multiple sounds.. i had this problem when i first installed archlinux. back then i tried installing pulseaudio and found that cumbersome. eventually went back to alsa and found magically i could play sounds at once..
    now again it has reoccurred ever since the module init tools upgrade. i have tried reconfiguring alsa with alsaconf with no avail.
    on trying to play sound file from the 2nd app i get a knotif saying
    The audio playback device HDA Intel (ALC880 Analog) does not work
    Falling back to .
    some of the conf files i have:
    [$]> grep MODULES /etc/rc.conf
    # MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
    # NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
    MODULES=(e100 mii slhc snd-hda-intel snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd soundcore !snd-pcsp)
    [$]> grep DAEMONS /etc/rc.conf
    # DAEMONS
    DAEMONS=(syslog-ng dbus @network netfs crond alsa hal cups @openntpd)
    [$]> cat /etc/modprobe.d/modprobe.conf
    # /etc/modprobe.d/modprobe.conf (for v2.6 kernels)
    [$]> cat /etc/modprobe.d/sound.conf
    alias snd-card-0 snd-hda-intel
    alias sound-slot-0 snd-hda-intel
    [$]> cat /etc/libao.conf
    default_driver=alsa10
    [$]> lspci | grep -i audio
    00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 03)

    djszapi wrote:It seems to good. Did you try pulseaudio now too ?
    no i dont want to. it doesn't seem right with kde

  • What are multiple video cards good for?

    Yeah, I know it is probably a dorky question but I would certainly like to know the answer before I start pricing my future Mac Pro. What I'm thinking about is online gaming stuff (which I'm just getting into so I'm still a little clueless). My question is:
    Are four GeForce 7300 cards better than one X1900 for gaming/graphics?
    It sounds like from the other posts that the X1900 is the superior card. Am I reading things correctly?
    Thanks,
    Toast
    867 MHz G4 Powerbook   Mac OS X (10.4.8)  

    One advantage of multiple video cards is monitor calibration. When running two monitors off of one card, it's simply not possible to (accurately), calibrate both screens. Altering the video LUT of the card to dial in one monitor will affect the calibration of the other.
    On my previous G4 system, I ran two screens from separate cards (two CRTs - different makes and size). With hardware calibration, I was able to get them to match perfectly. On my Mac Pro running the same screens from only one card, I can get them close but not perfect - more importantly, I have to decide which monitor is to be properly calibrated.
    Not particularly important for gaming performance but there you go ...
    -phil

  • Installed Ensoniq AudioPCI SB32 - now I cannot play multiple sounds simultaneou

    I started with an el-cheapo on-board sound card (SiS 708). I just installed a Creative Ensoniq AudioPCI SB32 and can no longer play multiple sounds simultaneously.
    For example: if I am playing an MP3, WAV, or otherwise an audio file that uses the sound card's WAV output, other sounds such as the Windows event sounds or sounds assigned in my FTP application. I *could* do this without a problem using the SiS 708 card.
    More info:
    - I did leave the SiS 708 installed. Could this be conflicting?
    - I set the default I/O sound devices to the Creative Ensoniq in the control panel
    How can I play multiple simultaneous audio again?Message Edited by epp_b on 0-07-2006 07:48 PM

    I have tried the following things:
    - Uninstalling and disabling the onboard sound
    - Installing the latest version of DirectX
    I can't think of anything else (there are no updated Creative drivers that I can find)

  • Streaming multiple streams from multiple capture cards at the same time

    Hi All,
    I have 2 the same capture card. And I am trying to stream to 2 diffrent rtmp server. I start first one and no problem. But when I run second FME instance and select second stream card, first one turns to black and second one shows up. When I close second, first one again comes back.
    What shoul I do for streaming multiple streams form multiple stream cards?
    Best regards.

    They are, yes, but I'm also working with multitrack sessions using clips made from various different sound files.
    Ahh ok, use markers?
    So, this sort of thing isn't possible in multitrack mode then?
    If not, it sounds I'll have to "mix down" my multitrack session into a single file and set up the markers in Waveform Edit view.
    That's an extra step I'd have to do, and after editing the multitrack session, surely some markers . . . oh wait, no . . . every time I output the new mix down file from the multitrack I'd need to redo all the markers. Drat . . .
    Honestly, I am very new to Audition, but I'm about to plow into it, big-time, and I'm hoping for a nice non-destructive and fast workflow that'll enable me to output sets of sounds from the same multitrack session.
    But, it seems like this functionality is currently missing.

Maybe you are looking for

  • Video out to TV - problems

    Hi, I am having trouble sending video to my TV with my Macbook. My system: Macbook G4 with OSX 10.4.11 My TV: Sony Trinitron 32" (late model CRT) with component/composite/svideo -I have the video adapter to convert the Mini DVI out to composite video

  • DPR_EVENTS

    Hi can anyone does work on this BADi? here is my thread in abap objects.. Class structure help me out... points will be rewarded regards Giri

  • Unable to find Adobe Acrobat X Pro free trial

    Any ideas where can I find Adobe Acrobat X Pro as a free trial for download please? Many Thanks Ed

  • Why is iCloud grey out when log in?

    Trying to get my e-mail but iCloud is gray out blurry in my iMac can log in why?

  • IMovie Trouble

    Hello I'm having  little troubel with iMovie. I'm making a movie which have over 700 photos in it including comments. What i did was adding all 700 photos at once and adding comments to each photo and make chapters, so that i could edit it later. But