How do I play CD audio tracks using LabVIEW?

I need to be able to play and stop tracks from CD's. Is it possible. I know it's easy to play wav's but I need to play the source.

Hi,
I've made an example for you based on MCI command
mciSendStringA from winmm.dll
This example plays the specified track from CD.
The idea is in sequential sending of the next strings to driver:
"open cdaudio wait"
"set cdaudio time format tmsf wait"
"play cdaudio from T1 to T2"
"stop cdaudio wait"
"close cdaudio wait"
The example is attached and works fine on my PC.
Good luck.
Oleg Chutko.
Attachments:
PlayCD.vi ‏48 KB

Similar Messages

  • How to add keyframes to audio track using mouse?

    I saw in a tutorial that you can click on an audio track and add keyframes (small dots) and then use them to adjust sections of the audio track. When I click nothing happens. Is there a modifire key I need to use in combination?
    Thanks

    The Option key.

  • How can I play an audio signal using DAQ or other way?

    I'm designing a Voltage control amplifier. as shown in the attachment, I have a speaker connected to the power amplifier but all i have is noise. I like to know how can I put an simple audio to my circuit. My audio input is generated by the function generator. I only have a simple labview program which control my voltage input as attached.
    Attachments:
    Untitled.png ‏78 KB
    DAQOutputControlVCA.vi ‏45 KB

    No problem, your questions are not stupid. I just want to be sure you're digging into the examples and learning from them (they're a great resource).  
    The sound card outputs should be good enough to drive your circuit.  Most cheap cards or built-in audio chips have a jack for line out and headphones (which is just the line signal through a buffer amp so you have volume control).  Either on should work for your purpose.  The line out should give you a volt or more at reasonable current levels. There also MIGHT be a low frequency filter on the output meaning that you won't be able to output DC levels or very slow (<20Hz) AC.
    The jacks themselves usually have the signals (Left and Right) on the center conductors and the return is the barrel but you might want to look up your card's specs or probe the outputs before you connect anything to your circuit.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • How to open sounds and audio properties using Labview function

    Hi All,
    How to open the sounds and audio properties of the control panel using the Labview system exe vi.
    Is there any dll also to open this property.
    If there is dll which is that and how to program the dll to serve my purpose.
    Solved!
    Go to Solution.

    Have you looked at the "Graphics and Sounds" section within the Functions Palette (Block Diagram)? There are VI's that already exist for this.
    R
    Message Edited by JoeLabView on 09-04-2008 07:44 AM
    Attachments:
    sounds.PNG ‏12 KB

  • How can I edit imported audio track? After selecting and deleting region and joining remaining parts, it keeps playing the track with the deleted part! What am I doing wrong?

    How can I edit imported audio track? After selecting and deleting region, and joining remaining parts, it keeps playing the track with the deleted region!
    What am I doing wrong?

    After selecting and deleting region, and joining remaining parts, it keeps playing the track with the deleted region!
    What am I doing wrong?
    How exactly are you doing this?
    When I cut out a part of an audio region, then drag the remaining parts together, so they are touching, the track will skip the cut out section when playing the file.  Also, if I select the remaining parts of the region and use the command "Edit > join regions". This will create a new audio file with the cut out part deleted.
    You should see this prompt, when you are joining the regions:

  • How to play multiple audio tracks simultaneously?

    Hi there,
    I am having problem with playing multiple audio tracks. I want to play 2 or more audio tracks at exact time (without delay) - is it possible? how can it be done?

    So, essentially, you're trying to take a recording of say, a singer and a guitar player, and end up with the singer in one file and the guitar in the other. Got it.
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/Merge.html]
    That sample will merge multiple input files into a single file. Because you want to play the files together rather than save them, just take the sample and strip out all of the DataSink stuff, and add the following line right after the Processor "outputProcessor" is realized...
    outputProcessor.setContentDescriptor(null);
    So, it'll make the following revision to the code:
         // Create the output processor
         ProcessorModel outputPM = new MyPMOut(merger);
         try {
             outputProcessor = Manager.createRealizedProcessor(outputPM);
                        outputProcessor.setContentDescriptor(null);
             outputDataSource = outputProcessor.getDataOutput();
         } catch (Exception exc) {
             System.err.println("Failed to create output processor: " + exc);
             System.exit(-1);
         }That'll make the outputProcessor play the file, as if it was a Player object. You won't have any visual controls, but if you need visual controls, then don't do that, and just create a Player object to play the outputDataSource.

  • How can I play an audio CD with QT 7.1.6?

    I want to play an audio CD with QuickTime 7.1.6.
    When I click on Open file and select the CD drive, change th file type to Audio Files and mark "Open as read-only" nothing is displayed. When I change to "All Files (.)" the tracks are showed with an ".cda" extension. When I dobleclick on a track, I get the Error -2048: the file is not a movie file.
    How can I play an audio CD with QuickTime 7.1.6?

    I confirm your issue as I just tried an audio CD in my XP laptop. "All Files" showed only the 44 byte .cda files and no others. QuickTime couldn't open them (error -2048).
    I also tried "Open File" with version 7 Pro and it couldn't open.
    Odd that I get the option to open using iTunes and it opens and plays just fine. Since iTunes uses the QuickTime engine I would have thought QuickTime could read the files directly.
    The same audio CD inserted in my Mac allowed me to double click any track and it opened directly in QuickTime Player. The files show as .aiff files measured in MB's.
    Windows users could open an audio CD in iTunes and then convert to .aiff (no compression) and then open the .aiff in QuickTime.
    I guess I should have tried myself before getting your hopes up. I apologize.

  • Is there a way to get an iPod touch to play one audio track and stop.

    Is there a way to get an iPad to play one audio track and stop.
    I work in education and particularly music. Teachers are looking to create a playlist of selected track but only want the selected track to play then stop.
    This allows them to talk to the class during presentation and not worry about having to stop playback mid discussion.
    I've been successful doing this from appleTVs homeshared to a library by unchecking songs in the playlist. But It would be useful to instructors who have there own media on their device.

    Thanks for a cognative answer TXMark.
    For what its worth to any readers that work in education and would like this play once and stop 'feature'
    I had great success in homeshareing a iTunes library of teaching material and creating topic specific playlist and used apple remote app to control an appletv connected to that homeshared library. As TXMark suggests, uncheck the songs in iTunes and the media will not automatically play the tracks in sequence.
    note: if you have video media that you would like to have in the playlist, be sure its listed as a music video in the options of get info of track. otherwise the apple tv will not see the media in the playlist and will put it in the movies section of the library.

  • Is there a way to get an iPad to play one audio track and stop.

    Is there a way to get an iPad to play one audio track and stop.
    I work in education and particularly music. Teachers are looking to create a playlist of selected track but only want the selected track to play then stop.
    This allows them to talk to the class during presentation and not worry about having to stop playback mid discussion.
    I've been successful doing this from appleTVs homeshared to a library by unchecking songs in the playlist. But It would be useful to instructors who have there own media on their device.

    The only way to stop after a song is to create a playlist consisting of only that song.
    For feature suggestions use http://www.apple.com/feedback/ipad.html

  • How do I play all the tracks ?

    How do I play all the tracks in track view?  I did it once and am unable to do it again.  It only plays the 1 track I am working on and not the entire song.  I am using garage band on an iphone5

    Hi
    gary.studio wrote:
    Surely I can change the tracks to route through the computer sounds directly rather that going via the keyboard?
    Sure
    The quickest way would be to make new (Internal) Software Instrument tracks and to copy any MIDI regions across to those tracks
    CCT

  • How do I seperate the audio track from the video and save it to a CD in Premiere Elements 13?

    How do I seperate the audio track from the video and save it to a CD in Premiere Elements 13?

    Binbashi
    You can separate the audio track from video and save it to a DVD disc within Premiere Elements but not a CD disc.
    To do save to the audio to DVD disc, you do not have to separate linked audio video, just use the export Publish+Share/Computer/Audio and set Presets to the wanted format (AAC, AIFF, MP3, or Windows Waveform (WAV).
    You will not see Audio in the choices since it is at the bottom of the list of choices under Publish+Share/Computer/. You will need to use the thin scroll bar to the right of the choices to scroll to it.
    If you need information on selective export of Timeline content when dealing with more than just this one file on the Timeline, please let us know. If you are trying to produce a CD for listening in car or CD player elsewhere, please let us know.
    Looking forward to learning of your results.
    Thank you.
    ATR

  • Movie Playing multiple audio tracks & echoing

    I have a movie that is in a symbol that i want to play after a set amount of time by using setInterval. The function works - but when it shows the symbol and plays - it plays multiple audio tracks at the same time - sounding like an echo and or a 1-2 second delay on the same audio track. It also seems the audio starts playing on the main root without actually triggering the playhead of the video symbol.
    Following is the code i am using for both timer and the video. Any pointers?
    // interval
             var timer = setInterval(onTimer,10000);
             var mysymbol = sym.getSymbol("btn1_video");
             // function
             function onTimer() {
                // clear last interval
                clearInterval(timer);
                // action
                sym.$("btn1_video").show();
    //and on on the movie symbol timeline trigger:
    var vid = $("<video width='818' height='460' autoplay='autoplay' preload='auto' controls='controls' id='videoID'>" +
    "<source src='video/testvideo.m4v' type='video/mp4' />" +
        "<source src='video/testvideo.webm' type='video/webm' />" +
       "<source src='video/testvideo.ogg' type='video/ogg' />" +
       "This browser is not compatible with HTML 5" +
    "</video>");
    sym.$("btn1_video").append(vid);

    You identified the problem. I thought that you had to highlight the first song to get the playlist going, but all that does is make the first song repeat itself. Thanks for the guidance.

  • Does anyone know how to record directly to a track using Logic's effects?

    Hi there, does anyone know how to record directly to a track using Logic's effects? I know that it needs to run through a buss somehow but I am not quite sure how. Need to Di a bass and want to keep the levels down using a compressor (recording strait into a Mbox with Logic 8). Any help will be greatly appreciated. Thanks.

    If you route your Bass into a channel in Logic and put plugins/fx on the channel plus you have monitoring on (and monitoring off on your external mixer) - you can record while listening to the effected sound. However what is being recorded is the clean/raw audio - this is a good thing as you can later change your compression/fx settings - printing the effect at this early stage is normally avoided.
    Ian

  • How to not overlap two audio tracks?

    Hi, I use Adobe Premiere and I recently I had a problem with Action! (a video recording program) if you register the microphone and the stereo, Premiere overlaps the two audio and is not making me hear my microphone. I also tried to click the check mark on recording program (split audio tracks) but Premiere not divides. How can I create two audio tracks divided on the same record?

    Are you saying that if you walk up to your Mac, iTunes suddenly opens? 
    At any rate, you should be using two different accounts on the Mac, each of you logging into your respective accounts, if you don't want common syncing.

  • Adobe Premier Pro CS4 can't play mpg audio track - any fix?

    Hello
    I need some help about Premier Pro CS4:
    I'm using Mac OS X 10.5.8 and adobe premier CS4
    I Imported a video file .mpg to timeline, but the audio track is'nt vilible or playable, it's just like it doesn't have any just like.
    The file came from DVD, after demultiplex, using Vob2Mpg (open source software), this operation produced a file with mpg extension - the file that does'nt work.
    I looked in the web and some say that it works on adobe premier CS3
    Anything that can fix this, any solution?
    thanks

    Adobe Premier Pro CS4 can't play mpg audio track - any fix?
    Hello
    I need some help about Premier Pro CS4:
    I'm using Mac OS X 10.5.8 and adobe premier CS4
    I  Imported a video file .mpg to timeline, but the audio track is'nt  visible or playable, it's just like it doesn't have any sound.
    The file came from DVD, after demultiplex, using Vob2Mpg (open source software), this operation produced a file with mpg extension - the file that does'nt work.
    And Quick Time doesn't recognize it as video file
    I looked in the web and some say that it works on adobe premier CS3
    Anything that can fix this, any solution?
    thanks, again, sorry about the errors in the first post

Maybe you are looking for

  • How does one change the dictionary default from Portuguese to English?

    In one of the upgrades, instead of defaulting to English, my spellchecker instead defaults to Portuguese, which is the first language listed (also have French and Spanish). So every time I open Firefox, I have to change back to English.

  • No authorization for maintaining

    hi i am trying to enter the tcode VOFM system shows this massage Authorization for displaying table TFRM only (authoriz. grp VS) Message no. VP260 Diagnosis You do not have the authorization for maintaining object S_TABU_DIS and the authorization gro

  • I forgot my passcode, how can i get into my iPad?

    I set a passcode and cannot seem to remember it.  How can I get into my iPad without resetting it?

  • Volume Button Acting like Power Button! Help!

    For some reason, my iTouch volume buttons randomly decided to become a power button. Whenever I press a volume button, it turns off. It even gets the power off slide if I hold it long enough! It won't change the volume right either. Can somebody plea

  • Were is my refund?

    Late last year I got two usb wi fi dongl on BT site to help get better speed on my laptops with new hub 5 just put into my home and my card was billed.with the £38 . Only one turned up so I phoned BT and few days l got the second one and month later