Playing two sound waves across two different sound cards simutaneously?

Hello all.
With the help from old board posts and the example VIs packaged with Labview 2009 SP1, I was able to get part of the way.
The goal is to simutaneously play two .wav files, to two different sound cards. So far:
1) I can play one wav file to either sound card
2) I can generate two sine waves of different tones, and push each out to the two cards seperately simutaneously.
But when I replace those two tones from #2 with .wav files, the wave files play alternately. So wav_1 plays to sound_card_1, THEN wav_2 plays to sound_card_2, not simutaneously.
Is it even possible to play 2 wav files simutaneously out to different cards?
I've included a VI of the attempt in #2 above. Disclaimer: my labview skills are minimal and this vi was very experimental so it's probably terrible form.
Solved!
Go to Solution.
Attachments:
sample_code.vi ‏23 KB

Tzoom84,
Since there is no way to buffer your sound output on the sound card and use hardware triggering you will be limited to software start timing.  You could use semaphores as you said, or simply wire both of the Sound Output writes in parallel inside a single while loop.  Since windows is nondeterministic the best you will likely achieve is the two outputs starting within tens of milliseconds of one another.  The time between the two starting will be affected by all other processes running on your system and may take much longer.  
Regards,
Sam K
Applications Engineer
National Instruments
www.ni.com/support

Similar Messages

  • Playing movie full-screen across two monitors?

    I have a PC with a pair of 800x600 monitors side-by-side for a dual-monitor desktop. I want to play a very wide (1600x600) QuickTime movie fullscreen across them both (not simply mirrored), with no window border or Windows taskbar visible. But when I click the zoom box for the movie window, it resizes the window to one display, so that it doesn't touch the other display at all.
    I'm not currently using QuickTime Pro; will paying for that upgrade allow me to play a movie "Full Screen" across two screens, or will that still limit the movie to one screen?
    Is there any other way for me to play the movie across two displays? (Again, not mirrored - the movie is wide enough to fit both displays.) Is there some other QuickTime movie player that'll do this for me?
    (The movie is a pair of eyes looking back and forth. It's for a Halloween display, one monitor per eye.)

    I had an older version of VLC and it did not work but I tried the beta version of 0.8.4test1a and it plays everything from h.264,mpeg4,mpeg2,avi,vob,wmv and a few more. The only other things I know I have done is that I have the pro version of quicktime 7.0.3 and I have a codec pack from ColeMedia Codec Pack from http://www.cole2k.net/ other than that I don't know what else I did that made it work.

  • Sync Address Book across two Macs w/o .Mac

    How do I sync two address books across two Macs without using .Mac?

    Hi
    There are several third-party solutions. When I was without .Mac I used Address-O-Sync. You can find others on versiontracker.
    Matt

  • Loading a different sound on each frame

    At present I have sound that loads when I click a button.
    Inside the button I have this code
    on(release){
    gotoAndStop(2)
    mySound_sound.loadSound("02.mp3",true);
    How can I make the sound change to a different sound upon
    reaching a certain frame automatically without clicking on the
    button.
    How can make it possible for the song to load automatically
    when the movie reaches a frame without clicking the button.

    umr wrote:
    > At present I have sound that loads when I click a
    button.
    > Inside the button I have this code
    > on(release){
    > gotoAndStop(2)
    > mySound_sound.loadSound("02.mp3",true);
    > }
    >
    > How can I make the sound change to a different sound
    upon reaching a certain
    > frame automatically without clicking on the button.
    please read reply to your duplicate post titled "sound" and
    try not to post multiple threads
    on same subject. It generally take more than few hours if not
    days to get reply, so just post and
    chill till someone find the time to read it through :)
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • How to calculate the phase difference between two square wave (acquired from two channel in one DAQ)

    Hello everyone ,
     I need a quickly help that as below :
    I am trying use PCI-6220 to acquired six signals from one rotation encoder (channel A, channel B,channel Z ,and their non-signals) .The encoder out signals will be square wave and 4000pulses per revolution. I set it rotation at 300rpm speed. I need show every square wave of six out channels in waveform and measure the A-B phase difference to check if the value is correct (designed value should be 90deg) .
    I have no idea how to measure or calculate the phase difference of two square wave base on synchronizate to acquire these two square wave from two channel on the PCI-6620....
    Anyone can give a idea how to calculate the phase difference with two square wave ?
    Thank a lot and Thanks again...
    Tim

    Tim,
    Here is a simple rising edge detector for one channel.
    Lynn
    Attachments:
    Rising edge.vi ‏15 KB

  • My back two speakers aren't producing any sound when using iTunes 7

    I've only noticed this problem since upgrading, and it doesn't happen when I'm watching movies/listening to music with other programs, and I was wondering if anyone else has had this problem. I have a 5.1 setup, so two in the front, two in the back, and one in the center, plus a subwoofer. The back two speakers won't output any noise though.

    I had the same problem. First thing I did was open Quicktime and switch the settings from 16 bit to 24 bit. I still only had sound coming out of 2 of 5.1 speakers and it sounded all distorted(this *****). Then after reading some posts here I turned up the volume all the way and sound came out of all of my speakers and was clear. I still haven't seen a real fix for the problem and I think it is unacceptable. In summary:
    16 bit setting works at all sound levels but only plays through 2 speakers no matter what your other setting are.
    24 bit setting sounds like static in all 5.1 speakers unless you turn the volume up all the way in itunes and then adjust your volume using your sound card volume control.
    T

  • Playing different sound, left right channel

    Hi,
    Basically what I'm trying to do is to play 2 different sound files (.wav) in stereo, but through different channels.
    sound file A - left sound channel
    sound file B - right sound channel
    These files should be playing at the same time.
    If this is not possible, is it possible with 2 soundcards?

    Hi,
    Basically what I'm trying to do is to play 2 different sound files (.wav) in stereo, but through different channels.
    sound file A - left sound channel
    sound file B - right sound channel
    These files should be playing at the same time.
    If this is not possible, is it possible with 2 soundcards?

  • Hello there - I am sharing an iPhoto library across two accounts on the same computer - it works fine EXCEPT for Quicktime movies - they play on one account and claim I don't have the rights on the other - all permissions are on and ok?

    Hello there - I am sharing an iPhoto library across two accounts on the same computer - it works fine EXCEPT for Quicktime movies - they play on one account and claim I don't have the rights on the other - all permissions are on and ok?

    It should be in the Users/ Shared folder.
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Note the option to check and repair Library Permissions
    Regards
    TD

  • Is it possible to play different sounds for emails and instant messages ?

    Hello,
    I was wondering if it was possible to play different sounds for emails and instant messages. I am using Thunderbird quite often with both emails and instant messages imported from Gtalk.
    I think it would be very convenient to be able to distinguish both sounds as they do not imply the same things.
    Thank you very much.
    Olivier Hubert.

    There are only six chat add-ons, three of them are about notifications. Pick one you think will do the job for you. https://addons.mozilla.org/en-US/thunderbird/extensions/chat/?sort=popular

  • ACE30 load balancing across two slightly different rservers

    Hi,
    is there a possibility to get a load balancing across two rservers so:
    when client sends http://vip/ and it goes to rserver1 then url is sent without change
    when client sends http://vip/ and it goes to rserver2 then url is modified to http://vip/xyz/
    Or maybe load balancing can be done across two serverfarms ?
    thanks

    Ryszard,
    I hope you are doing great.
    I do not think that´s possible since the ACE just load balance the traffic to the servers and once the load balance decision has been taken it will pass the "ball" to the chosen server.
    Think about this, let´s say user A needs to go to Server1 but guess what? based on the load balance decision it was sent to Server2 which unfortunately does not have what the customer was looking for. OK, fine, user A close the connection and tries again but now the Server1 is down then the only available is Server2 then the ACE sends it to Server2 again then user A just decides to leave, you see how bad that can be.
    A better approach would be to have either 2 VIPs ( different IP addresses) or 2 with the same IP address but hearing on another port, perhaps, one port per server.
    Hope this helps!
    Jorge

  • Audigy 2 NX - intermittent interrupted sound while playing 997Hz sine wave f

    I just now bought Audigy 2 NX last week. When I play a 997Hz -3dB sine wave sound file, the sound coming out from SPDIF and analog output jacks are not continuos, it is interrupted intermittently. The sine wave audio file is provided by a famous audio instrument company Audio Precision. I must play the sine wave file to verify my Audigy 2 NX. Unfortunately, the sound is not continuos. The sine wave file can be played very smoothly a nd correctly on other notebook PCs. Is there any one who knows what happened to my Audigy 2 NX ?
    Why do I play the 997Hz sine wave file ? I am responsible for design notebook PC hardware. I must test my audio design to see if I can pass Windows Vista Logorequirements or not. My company bought the Audio Precision instrument for the test. In order to test Microphone Input characteristic with the instrument, I must buy Audigy 2 NX to play the recorded audio file. Audio Precision recommend me to buy Audigy 2 NX for the measurement. The analog output of Audio Precision is connected to the Mic-In of my notebook PC. The notebok PC will record the 997Hz sine wave sound from Audio Precision. After recording the sine wave sound, I play the recorded file on my notebook. The file will be sent to Audigy 2NX from USB port, and then the Audigy 2 NX will send the sound to Audio Precision through SPDIF. Audio Precision will analyze the sound coming in from the SPDIF port. So I can measure Mic-In quality.

    Nikopoika wrote:
    I have same kind of problem with my "Soundblaster Audigy 24-Bit", cos' I can't enable the "Advanced HD" effect in FEAR and Quake 4. I've heard that it can be fixed with a patch but I'm not able to install any of these patches I have downloaded from creative.com, everytime I try to install some of these patches it causes a fatal error which says "Make sure you have installed previous drivers correctly". I have tried everything but nothing seems to work.
    Hello fellow sufferer
    As I've found out so far the Advanced HD in F.E.A.R. is EAX Advanced HD 4.0 and our SoundBlasters are, whysoever, limited to EAX 3.0. I guess the patch you tried to install was the EAX 4.0 patch for the Audigy 2 series (of course my NX is not included,arghh...).
    When I read "EAX ADVANCED HD Game Effects deli'vers mind-blowing gaming realism." in the Audigy 2 NX description on the creative site I did not realize that this "mind-blowing gaming realism" is strictly limited...

  • Playing basic sound ( *.wav ) through a click of button ?

    Hi Java experts:
    Need to know the Java code to be added to a click button 1 to play sound ( *.wav ) and the code to stop the sound through and other click of button 2.
    Using a normal applet
    Thank you in advance
    M C Benzerari

    See...the scenario is something like this : I have a main application running into a JFrame instance. Now, from a menu item in this JFrame, I have opened the modal JDialog. And from this modal JDialog, I have created a JFrame. Now I am not able to focus and perform any operation on this JFrame unless I close the JDialog from which it was created.
    Please suggest some workaround so that without closing the JDialog, I am able to fire some event from the JFrame which is being created from this modal JDialog.
    Thanks,
    Gauri

  • Can I apply a transition across two clips in different video tracks?

    In reading the manual, I see that I can butt two video clips up against each other in a single video track, overlap them and apply a transition.
    However, I'm accustomed to (in audio editing software) making transitions across two clips that are in two separate video tracks.
    I would like to be able to fade in and out, back and forth across two video tracks. Is that possible?
    Please direct me to resources already documented and I will go read further. Maybe there are online resources, other posts, etc.
    Thanks

    Most transitions will work if the clip is overlapped on another track. Just apply the transition to the edit point. Some, like the 3D simulation transitions, will not work properly like this.
    It would really be better if you learned how to use this application the way it was designed to be used rather than the way you used some other application.

  • How to lip sync and see the sound wave better?

    Alright, so first of all I will thank you for clicking this post!
    There's 2 questions/problems, so if you got the solution on both/one of them, PLEASE post!
    So I'm working on an animation where some guys sings and in order to make that look good, i need some good lip syncing.
    Since this is not short clips, but a whole song on 2-3 minutes, it's very hard for me to make the lip sync perfect because I have to replay from the beginning in order to hear the music.
    So question one is: Are there a way that I can play the movie in the middle and still hear the music?
    And so the second question is that I can barely see the sound waves in the Music layer, even though there's lots of music.
    Here's a picture of how big the sound waves are:
    And that's in the middle of the song!
    The problem is not that the music is too low, because it's quite high.
    So question number two is: Are there a way that I can make the soundwaves bigger in the music layer without affecting the music itself?
    Feel free to post even if you don't have the answer, so it will stay at the top till someone knows how to fix this!
    Thanks from Mistah NovaNova

    There are several ways to make the sound file, or any layer, more prominent in the timeline. In the upper right corner of the timeline window is a contextual menu. In that menu select Large. This will make all of the layers use a larger area in the timeline window. Set the frame rate to higher rate, say 100 or 150 fps. This will stretch the audio, and all of the other content over a larger space in the timeline.
    Both of the above will make the audio track easier to see. Add a layer to the timeline and place key frames at points where you need. These will aid you in managing the audio.
    I usually cut up the audio file into smaller chunks and place these end to end in the timeline, usually in different layers. The net effect on playback is that the sound plays as expected. On the timeline, I get a short chunk of content to work with. You cannot expect to maintain sync over any extended period of time in Flash, or any application like it. Keep the extent of any given synched section short and run them end to end. The audio and the visual portions of Flash are compiled separately and will be played back separately.

  • Spread image across two pages and print the full pages

    Hi there,
    Im having a bit of trouble with InDesign CS3.
    I want to place an image across two facing pages but can't seem to make it go further than one page.
    Also I want to figure out how to print full pages, currently I am only able to print what is contained in the pruple bounding box on the page, any part of the image outwith this is cropped off leaving a white border on the page - this isn't an issue for all but my title page and this two page image I require.
    Any tips.
    Cheers
    malc

    I don't understand the inability to place an image that spans two pages (not that I necessarily think this is a good thing to do under most circumstances, but that's a different discussion). Can you see both pages in the same spread? How about providing some details about what you are doing, and maybe a screen shot showing what's happening. Perhaps you're using a frame on the master page?
    The second part sounds like a printer issue, but that's hard to know without knowing what your "purple" guides (presumably the page margins) are set to. Most printers are not able to print to the edge of the sheet of paper, regardless of what might be included on the page, so you get a white border that will vary in size depending on the printer model. Generally speaking, to print a bleed you must extend the items beyond the page edge (to insure there is no white edge left fom misaligment in the cutter) and print on a larger sheet, then trim to finished size.

Maybe you are looking for

  • External hard disk not detecting

    Hi, I am using WD 1 TB external hard disk and it was going all good till now one day my friend asked for my hard disk as he need to back up some data and connected it to PC. Now I am trying to connect it to mac but mac is not detecting. My hard disk

  • Pdf file and Firefox 20.00

    I'm not sure what's happening here but when I view a pdf file in Firefox 20.00 from a link on the website it shows all the text as below? %x$#%-%%#*x% If I view the pdf in Google Chrome or Safari the text is perfectly ok. Anyone come across this befo

  • Limit list of values

    I have a field in a form based on which value i have to filter a list of values. So in the query for the record set i have filtered the query using the where condition like where column_name = :block.item. So that would filter the LOV based on that v

  • SEM-BCS  Duplicate posting of currency translations

    Dear BCS Gurus: During the Testing Run of the Total Records, the following error is noticed: The system automatically posts the currency differences to the clearing accounts defined under Items> Selected Items> Clearing B/S and I/S accounts. The post

  • How do I subscribe to a podcast

    Hi, Could anybodt tell me how to subscribe to a podcast. When I go to Itunes they are all greyed out? Thank you.