Simultaneous Sound IO example coupure

Bonjour, j'ai pu essayer le vi Simultaneous Sound IO example avec version  labview 8.
Cela fonctionnait sauf qu'il  y avait des petites coupures.
J'ai modifier le buffer mais cela ne change rien.
Avez vous une idée par ou il faut chercher  pour résoudre ce problème ?
Merci  

Bonjour
Apparemment, une solution possible serait de changer le nombre de sample per channel. Voici un VI qui fonctionne:
Message Edité par Véronique D le 03-14-2007 08:57 AM
VéroniqueD
NI France
Attachments:
Simultaneous Sound IO_works.jpg ‏79 KB

Similar Messages

  • Problems with sound convertion example

    Hi
    Below is my code for a soundconverter (or atleast the beginning of one). By now i have only gotten to the sound convertion example in the java tutorials.
    I keep getting this error:
    Error: failure attempting to read /home/carsten/Desktop/1-welcome.wav!
    I have given the file a chmod 777 permission.
    im on linux, but i guess that shouldnt matter.
    Hope you can help me out
    the problems are in the convertFile method
    Thanks
    Carsten
    * SoundConverterGUI.java
    * Created on 23. april 2007, 13:05
    package soundconverter;
    import java.io.File;
    import java.io.IOException;
    import javax.sound.sampled.AudioFileFormat;
    import javax.sound.sampled.AudioInputStream;
    import javax.sound.sampled.AudioSystem;
    import javax.sound.sampled.UnsupportedAudioFileException;
    import javax.swing.JFileChooser;
    import javax.swing.filechooser.FileNameExtensionFilter;
    * @author  carsten
    public class SoundConverterGUI extends javax.swing.JFrame {
        /** Creates new form SoundConverterGUI */
        public SoundConverterGUI() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">                         
        private void initComponents() {
            loadFileBtn = new javax.swing.JButton();
            loadFileLabel = new javax.swing.JLabel();
            loadFileField = new javax.swing.JTextField();
            fileFormatLabel = new javax.swing.JLabel();
            fileFormatCombo = new javax.swing.JComboBox();
            convertBtn = new javax.swing.JButton();
            seperator = new javax.swing.JSeparator();
            jSeparator1 = new javax.swing.JSeparator();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            setResizable(false);
            loadFileBtn.setText("Browse");
            loadFileBtn.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    chooseFile(evt);
            loadFileLabel.setText("File to convert:");
            fileFormatLabel.setText("File format to convert to:");
            fileFormatCombo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "AIFF" }));
            convertBtn.setText("Convert");
            convertBtn.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    convertFile(evt);
            jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addContainerGap()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(loadFileLabel)
                                .addComponent(seperator, javax.swing.GroupLayout.DEFAULT_SIZE, 584, Short.MAX_VALUE)
                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(loadFileField, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                            .addComponent(fileFormatCombo, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(fileFormatLabel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 343, Short.MAX_VALUE)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                        .addComponent(convertBtn, 0, 0, Short.MAX_VALUE)
                                        .addComponent(loadFileBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))
                        .addGroup(layout.createSequentialGroup()
                            .addGap(310, 310, 310)
                            .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 11, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap())
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(loadFileLabel)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(loadFileField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(loadFileBtn))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(fileFormatLabel)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(fileFormatCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(convertBtn))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(seperator, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE)
                    .addContainerGap())
            pack();
        }// </editor-fold>                       
        private void convertFile(java.awt.event.ActionEvent evt) {                            
            //The format to be converted from
            AudioFileFormat inFileFormat;
            try {
                outFile = new File(inFile.getParent()+"/"+
                        inFile.getName().substring(0, inFile.getName().lastIndexOf("."))+"."+
                        fileFormatCombo.getSelectedItem());
                System.out.println(outFile);
            } catch (NullPointerException ex) {
                System.out.println("Error: one of the parameters is null!");
                return;
            try {
                // query file type
                inFileFormat = AudioSystem.getAudioFileFormat(inFile);
                System.out.println(AudioSystem.getAudioFileFormat(inFile));
                if (inFileFormat.getType() != AudioFileFormat.Type.AIFF) {
                    // inFile is not AIFF, so let's try to convert it.
                    AudioInputStream inFileAIS =
                            AudioSystem.getAudioInputStream(inFile);
                    inFileAIS.reset(); // rewind
                    if (AudioSystem.isFileTypeSupported(
                            AudioFileFormat.Type.AIFF, inFileAIS)) {
                        // inFileAIS can be converted to AIFF.
                        // so write the AudioInputStream to the
                        // output file.
                        AudioSystem.write(inFileAIS,
                                AudioFileFormat.Type.AIFF, outFile);
                        System.out.println("Successfully made AIFF file, "
                                + outFile.getPath() + ", from "
                                + inFileFormat.getType() + " file, " +
                                inFile.getPath() + ".");
                        inFileAIS.close();
                        return; // All done now
                    } else
                        System.out.println("Warning: AIFF conversion of "
                                + inFile.getPath()
                                + " is not currently supported by AudioSystem.");
                } else
                    System.out.println("Input file " + inFile.getPath() +
                            " is AIFF." + " Conversion is unnecessary.");
            } catch (UnsupportedAudioFileException e) {
                System.out.println("Error: " + inFile.getPath()
                + " is not a supported audio file type!");
                return;
            } catch (IOException e) {
                System.out.println("Error: failure attempting to read "
                        + inFile.getPath() + "!");
                return;
        private void chooseFile(java.awt.event.ActionEvent evt) {                           
            //Melder fejl hvis man fortryder
            //Lav en check om man har valgt en fil
            FileNameExtensionFilter fileFilter = new FileNameExtensionFilter(
                    "Allowed file formats", "wav");
            JFileChooser fileChooser = new JFileChooser();
            fileChooser.setFileFilter(fileFilter);
            int returnVal = fileChooser.showOpenDialog(this);
            inFile = fileChooser.getSelectedFile();
            loadFileField.setText(inFile.getName());
        // Variables declaration - do not modify                    
        private javax.swing.JButton convertBtn;
        private javax.swing.JComboBox fileFormatCombo;
        private javax.swing.JLabel fileFormatLabel;
        private javax.swing.JSeparator jSeparator1;
        private javax.swing.JButton loadFileBtn;
        private javax.swing.JTextField loadFileField;
        private javax.swing.JLabel loadFileLabel;
        private javax.swing.JSeparator seperator;
        // End of variables declaration                  
        //Fields
        private File inFile;
        private File outFile;
    }

    In case looking it up didn't help you as much:
    catch(Exception ex) {
      ex.printStackTrace();
    }is lots better than printing some message. It's like going to the doctor and telling him "body part xyz hurts with a stinging pain whenever I do the following..." instead of saying "Doc, there's something wrong".

  • I can't get any sound from ITunes. The computer's internal speakers are fine (they play utube sound, for example). And the sound bar on itunes is all the way to the right. Still no sound from the music library. Any insights?

    I can't get any sound from my ITunes library. The IMac is set to internal speakers, the volume bar on ITunes itself is all the way to the right, there seems to be no problem with the speakers themselves (they play sound from internet videos, for example), but I can't play music from the ITunes library on the IMac. Please help!

    Is it possible that you have iTunes set to send audio through AirPlay to an AirPort Express, Apple TV, or other AirPlay device (which is itself not turned up so you can hear it)?

  • Simultaneous sound: how to get sound from internal speakers and usb audio adapter

    I have an iMac in my living room. It is hardwired to my home theater system in my family room. Currently, I can listen to audio in one location or the other... but not both. I bought a StarTech.com ICUSB Audio Adapter hoping that it would be a fix... not so much. Downloaded SoundSource... not so much
    How can I get audio to play via my internal speakers and through my home theater system? Hosting a party this Saturday and would like multiple rooms filled with sound.

    First pluging is headphones and then unplugging it. If yu can't get it fully inseted tham may indicate that end of a plug is broken off inside the jack.
    Then if not above problem, try the standard fixes:
    - Reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup
    - Restore to factory defaults/new iPod
    If you still have the problem then an appointment at the Genius Bar of an Apple store is in order.

  • Two simultaneous sound outputs by using external USB sound card

    Hi
    I have a MacBook Pro running Mac OS X 10.4.1
    I've also bought a Griffin iMic as my second sound card.
    Mac OS X shows my internal sound card as well as the external USB one and I can
    easily switch between them. I was wondering if there is a way of using both at the same time, say, the internal speakers play song X and the headphone connected to iMic play sound Y.
    Do I need a special software for this ?
    Is iTunes capable of doing this ?
    Any input is appreciated.
    thanks
    Ahoora

    hi i just like to say i had a similar fault though i would be surprised if it causing yours,but you never know,my fault was my laptop lid, [9 months old] it contains the mic ,and when the lid was in a certain angle crackles could be heard worse when i had my external sound card in, it was a faulty membrane [ lid to body] easily missed by engineer because it was the same angle all the time it happened,good luck, PS you English is very good
    Message was edited by: sido1

  • Simultaneous digital & analogue sound output

    Until recently I used to have a Powermac G5. I was able to have simultaneous sound output to the line out and digital sockets, but I find in my new Mac Pro (early 2008) this does not seem possible - you have to choose between internal speaker, line out or digital.
    Although not a big deal, this is really irritating, as I have my main output as digital, where I play my music from iTunes on my HiFi via a 20m Toslink cable to a high End DAC connected to my amplifier, but when I want to use iChat etc, I just use my JBL Creature speakers. With the G5 I would just switch on the HiFi only when listening to music, but now I have to remember to go to the sound preferences to change the output from line out to digital when listening to music and vice versa when I want to do an iChat.
    I'm just struggling to understand why this basic functionality was removed in the Mac Pro.

    With an MIO card, this is not something that you will be able to do with a 10 KHz output rate. The way to accomplish this is to generate your analog output using your MIO card, and the digital signal with a PCI-6533 connected to the MIO card via the RTSI bus. The RTSI bus allows the cards to trigger together, and generate synchronous digital and analog output

  • Can you use DSP VI's in realtime with a standard sound card?

    In some of the example i have seen mention of a NI speedy 33 card that can be used with the DSP vis to carry out realtime chnages to sound, i cant think of a reason why not but is it possible to do this by outputting the realtime data to a normal soundcard?
    Thanks!

    Hi ATE Man,
    I think your referring to the tutorial below
    http://zone.ni.com/devzone/conceptd.nsf/webmain/c4e0fd8ed74cfaa18625708500649ce1
    If this is the case, then you could implement a similar system using LabVIEW under Windows. There are much the same functions under LabVIEW for Windows for manipulating the signal as shown in the tutorial, and there are sound input and output functions available under the 'Graphics and Sound' palette. Whether or not this will be able to show 'realtime' changes to sound will depend on the speed of your PC. There is an example in the Example Finder in LabVIEW 'Simultaneous Sound IO' which will give you an idea of how to read in sound from a microphone and play it back through the speakers, there shouldn't be too much work in adding some signal manipulation to this.
    I hope this helps, if you have any questions, then please let me know
    Regards
    Hannah
    NIUK & Ireland

  • 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)

  • Sound ADC

    Hi,
          I would like to measure an ADC of a sound signal. The sound wave is given to the mike input of the PC. when I used the example VI's I am getting the same signal as of my input. Is there any way just to measure the ADC of that sound wave. Appreciate your help.
    thank you,
    Mudda.

    Hello,
    By ADC I presume you mean analog to digitical conversion, and by data, I presume you mean the digital data returned by the sound VIs.  You will have access to the data in 8 or 16 bits and mono or stereo form from your sound card.  I would recommend taking a look at the example VI entitled Simultaneous Sound IO.vi; you can find it in the example finder (click Help -> Find Examples... in LabVIEW) by navigating as shown in the attached example finder screenshot.
    I think this will give you a good idea of how to use the sound VIs, and extract relevant sound data!
    Thank you,
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear
    Attachments:
    Example Finder Screenshot - Sound.bmp ‏1352 KB

  • X1 Carbon 2015 : Cracking sound speaker, especially with Dolby on (and other issues)

    Hi all,
    I just received my new X1 Carbon 2015. This is the first time I purchase a Lenovo Device after years with Dell.
    Unfortunately, the sound quality is horrible, but I am not sure if this is by design of if the laptop is faulty..
    The sound is very bad when it is coming from the speakers, especially the left speaker: the sound is cracking and saturating. This is especially true when the Dolby is on, and you clearly hear the problem with standard Windows event sounds (for example the sound you can hear when you adjust the volume with the slide on the sound icon next to the clock), or any warning sound.
    No problem if I use an headset.
    Am I alone with that issue?
    Even if the device looks great, I have to say that I am overall disappointed by the laptop quality, especially regarding the cost of that device (this is the Core i7 with QHD touchscreen and 512GB PciE SSD):
    - When I received it last week, the left button from the trackpad was stuck (impossible to use). I had to gently scratch the side of the trackpad button to release the button. Probably some remains of the manufacturing blocking the button.
    - Then I noticed that sound issue.
    - And finally yesterday, I discovered a spot on the bottom right of the screen. Not a dead pixel, but a clear spot behind the pixels, 1 square millimeter,  reflecting the backlight.
    Thanks
    Pierre

    Just had the IBM service tech at my house to replace the left speaker (I had purchased on-site service contract). He replaced it with a new one, and it now sounds normal - the distorted cracking & buzzing is gone. There appeared to be some tiny nicks or cracks on the original speaker element, which may have caused the problem.
    The process was fairly painless. Lenovo had the part in stock, shipped it to a local tech, who scheduled the service call within a day.
    The sound quality of course still isn't great without external speakers or headphones - these are just tiny little ultrabook speakers, after all. But at least now the sound from the built-in speakers meets my expectations, and doesn't make me cringe when I hear it. Once again enjoying my new Carbon X1...

  • Use TC 2TB for Time Machine Backup and Storage simultaneously?

    Hi
    I am planning to buy a TC 2TB.
    I would like to know if the TC can be used as a Time Machine backup device and for storage simultaneously?
    for example:
    Can I use 1TB for Time Machine backups and 1TB for storage.
    Please let me know if this is possible?
    Thank you

    I tried for ages to seek a relatively easy way to do this.. i.e. partition it, it's a huge pain! You can, but i'm pretty savvy and got bored and confused! What I did do was switch the TM back-ups to manual so they don't end up filling the disk. Trust me it's the easiest and best option!

  • Can I add a second monitor to my MacBook Air notebook and use both monitors simultaneously?

    Can I add a second monitor to my MacBook Air notebook and use both monitors simultaneously?  For example, have a spreadsheet open on the notebook monitor while the second monitor is displaying an architectural drawing?

    MiniDisplay-to-? adapters ... ? replaced by VGA or DVI or HDMI
    Best to use only 1 adapter to match the intended cable since mutliple-adapter setup (buy a VGA, then add VGA-DVI adapter) tendsto lose signal strength.
    Also graphics chips run hotter driving external display, and since the graphics chip in Air is part of the CPU the CPU may throttle itself as the integrated graphics chip heats up.
    Two modes of operation:
    Mirror ... same image both displays
    Extended ... the other screen is "extra screen space"

  • Splitter to get both speaker & headphones-sound only out of one earphone MSI K8N Neo4 SB L

    I've read the threads on this subject, but am unable to get simultaneous sound through use of a stereo splitter from line out of the computer. With the speaker unplugged from the splitter, headphones work okay with sound from both sides. When I plug in the speaker to the other side of the splitter, the speakers play, but I only get sound out of one side of the headphones.
    I have a volume control on both the speakers and the headphones, so I'd like to be able to switch back & forth using the volume controls. I have a headphone jack on the speaker volume control and on each speaker, but it's kind of awkward to keep plugging and unplugger plus I'd have to get an extension cable to plug in the microphone part of the headset..
    This arrangement does work on the Pentium 400, so I get the feeling Soundblaster Li've integrated on my MSI mobo has circuitry to not allow this. I tried the EAX surroundsound setting checked, but that didn't work. Anyone figure out how to do this?
    Regards, Ron

    The splitter I used was the one I used on my Pentium 400 which allowed both speakers and headphones to work. I also checked it with an ohmeter, and both double contacts work. My splitter female ends are colored one red and one black, but each seems to be full stereo. I have another similar splitter with both ends black, but it behaves the same way
    I'll try writing Creative tech support, but I think there's something in the sb circuitry to not allow splitting of the signal.
    Regards, Ron

  • Sound IO run time

    Hi,
    I have a program which utilises the Sound I/O and Sound File functions from under the graphics and sound pallette.
    I intend to build this into a distribution / installer.
    When building it seems like I require the Sound and Vibration run-time engine.  I believe i am not using any components of the sound and vibration toolkit as the Sound vi's are available with the standard LabVIEW platform.  Also if this does need the sound and vibration run-time engine then it appears that there is a charge for S and V run time for each target machine.  If this is the case then this is completely unfeasable for my intentions.
    Why do i need the sound and vibration run-time engine if I am not using the sound and vibration toolkit?
    Do I need the run-time engine at all? (It appears that i do)
    Will i have to purchase multiple run time engines if i Intend to distribute an application which uses these vi's ?
    If i do have to purchase then i suppose all sound operations will have to be done third party
    Craig
    LabVIEW 2012

    The sound card VIs are installed with Labview base. So they are not part of sound and vibration toolkit. Try to build an exe from one the sound IO examples. If this goes OK then you have a sound and vibration VI(s) some place else in the system. If you find such a VI. You may get around this by using copy the block diagram and paste into a new VI, and rebuild the connector pane. Do this also for the sub VIs.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • How do I turn off Firefox so I can uninstall. It has created problems with my AOL 9.5 e mail and sound attachments.

    I get e mail with hyperlinks that have sound but all I can get is the video and no sound. Example newsmax.com sends e mail alerts with hyper links to topics of interest. When I click on the link it takes me to the video but no sound.
    Control panel shows all speakers functioning properly. I can play CDs and have full sound. This only happened after I installed FF. I have AOL9.5 and WIndows 7.

    I just tried to open AOL radio and that won't play either. Frustrated.

Maybe you are looking for