LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can LabVIEW play mp3 files continuously?

Can LabVIEW play mp3 files continuously while simultaneously running other tasks? I want to sound continously that changes in real-time according to various user and sensor inputs. The sound would adjust pitch, speed, intensity, etc, accordingly. If LabVIEW can, what functions should I learn how to use?
0 Kudos
Message 1 of 3
(3,940 Views)
You would probably have better luck working with .wav files instead of .mp3's. There are several VIs that come with LabVIEW to read and write .wav files, but nothing to directly to alter the pitch or speed. You can read in the raw sound data and then manipulate in LabVIEW, so you might be able to what you want that way. If you do a search on .wav, you'll get quite a few results on what you can do with wave files.

If you'd rather not mess with that, I'd look for an external application that can alter the .mp3 or .wav the way you want and has an ActiveX or .dll that you can call in LabVIEW to control it. You can do this with Windows Media Player, but as far as I know, it can't alter the sound like you want. There's an example of how this works on the NI website here. That would at least show you how to play an mp3 in LabVIEW.

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Message 2 of 3
(3,916 Views)
hi

i suggest to try DirectX (download the free SDK from microsoft). you then have to write some code in VB or C++, but with DirectX it's very easy to play a sound file in a loop and adjust pitch, level and so on on the fly.

best regards
chris
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 3 of 3
(3,913 Views)