LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW and mp3 files

Hello LabVIEWers,

I'm wondering if any of you knows how to play mp3 files with LabVIEW.
Is there a simple way to do this? I would appreciate any information
you can provide. Thanks.

Dwight Krehbiel
Bethel College
North Newton, KS
0 Kudos
Message 1 of 16
(13,154 Views)
Dwight,

Let me answer your question with a short and a long answer. The short answer first.

In Windows you can easily play mp3 files using ActiveX and for example Windows Media player.

I know that examples are very popular here on DE for the simple reason that they show exactly how to do things. That is why I have a long anwer for you as well.

Some time ago I, with some help from Enrique Vargas whom by the way also is a frequent user here on DE, put toghether a small mp3 player in LabVIEW. I named it MusicBrowser. It is a program that will find and play any song on your computer in no time. You just type a part of the song's name and it finds it for you, just like the search function seen many times these days. It searches while you typ
e so no need to hit a search button!!! This is the tool you need in order to quickly see how many, and which, songs of an artist you currently have on your computer. The program also has a shuffle function that turns your computer into a mega jukebox. And on the front panel I added a big LED scroll feature that supports most special characters (Spanish, French, German, Swedish and so on.).

The program is here shared with all subVI's and if you, or anyone else, want to be part of this, please feel free to add changes and inform us about them for future releases. Please add comments here or send emails to mikaelgarcia@canada.com

Feedback is very welcome!!!!

In the Readme file, included in the zip file, there are instructions on how to run the MusicBrowser.

Have fun!!!

I hope this helps. /Mikael Garcia
Message 2 of 16
(13,154 Views)
... just a short note. In order to use Enrique's cool help function in this program, one first needs to put the MusicBrowser.hlp file on the following location:

C:\mp3lib\MusicBrowser.hlp

This will be added the Readme document in the next release.

Enjoy! /Mikael
0 Kudos
Message 3 of 16
(13,154 Views)
Mikael Garcia wrote in message news:<5065000000050000001F780000-1019262487000@exchange.ni.com>...
> .. just a short note. In order to use Enrique's cool help function in
> this program, one first needs to put the MusicBrowser.hlp file on the
> following location:
>
> C:\mp3lib\MusicBrowser.hlp
>
> This will be added the Readme document in the next release.
>
> Enjoy! /Mikael

I'm sorry - I really don't understand where to get this help file. Are
we talking about a LabVIEW release or the release of some other
software? Can you tell me anything more specific about how LabVIEW
might be used with these files?

Dwight
0 Kudos
Message 6 of 16
(13,154 Views)
Dwight,
The file I attached is a .zip file that, when un-zipped, will contain all files needed. The help file is one of them. The other files are the LabVIEW files and the readme file. I had to use the zip format because here on DE we can only post a maximum of three files. The LabVIEW files are compatible with LabVIEW versions 6.02 and higher. Attached to this comment is a screen shot of the help function in MusicBrowser. My use of the word "Release" refers to this project being a collaboration between me and Enrique. Let me know if you need more help. /Mikael
0 Kudos
Message 7 of 16
(13,154 Views)
Dwight Krehbiel schrieb:
> Hello LabVIEWers,
>
> I'm wondering if any of you knows how to play mp3 files with LabVIEW.
> Is there a simple way to do this? I would appreciate any information
> you can provide. Thanks.

Hi Dwight,

I'm using Winamp for myself by sending messages to the application.
Another way is to use ActiveX and mediaplayer. You can find an example
for a player "GAMP" here:
http://search.ni.com/query.html?col=alldocs&layout=Zone&qp=section%3Adevzone&qt=mp3

Otherwise you should find several audio libraries (DLLs), where you have
direct access without any other application. But there i can't help you.

If you want's more information about controlling winamp just mail me.

greets
Henrik
Message 4 of 16
(13,156 Views)
Henrik,
I would love to have Winamp as an option in my MusicBrowser. However, I have found no documentation on how to control Winamp. If you could post a simple example here that demonstrates how to play songs thru Winamp in LabVIEW it would great.

Thanks in advance!
Mikael
Message 5 of 16
(13,156 Views)
Mikael Garcia schrieb:
> Henrik,
> I would love to have Winamp as an option in my MusicBrowser. However,
> I have found no documentation on how to control Winamp. If you could
> post a simple example here that demonstrates how to play songs thru
> Winamp in LabVIEW it would great.
>
> Thanks in advance!
> Mikael

Hi Mikael,

I have written this vi's for personal use only. But if I see, that
someone is interestet, I would rewrite all (vi's and dll's) and offer it
for free use on my site. But perhaps i need some time to finish. When
I'm ready i will let you know.

Greets
Henrik
0 Kudos
Message 9 of 16
(13,161 Views)
Hi,

This could be done with MCI commands, DirectSound, Windows Media Audio com
object (set AutoStart=TRUE, uiMode="mini", URL="d:\test.mp3") , or with the
windows shell (ShellExecuteA, use "play" as command). More info:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwmt/html/
audiooverview.asp

"Programming Audio in Microsoft Windows and on Web Pages: An Overview"

Regards,

Wiebe.


"Dwight Krehbiel" wrote in message
news:d4848556.0205141503.244c6d67@posting.google.com...
> Hello LabVIEWers,
>
> I'm wondering if any of you knows how to play mp3 files with LabVIEW.
> Is there a simple way to do this? I would appreciate any information
> you can provide. Thanks.
>
> Dwight Krehbiel
> Bethel College
> North Newto
n, KS
0 Kudos
Message 8 of 16
(13,156 Views)
hi mikael,

i would make mp3 player based your musicbeowser. may you give me descreption (explanation) about your musicbrowser by part of part?
thank you very much
i'm sorry my english is bad.

and for henrik,
may you sent me your vi.
thank you very much

man3
email : zoemantri@yahoo.com
0 Kudos
Message 10 of 16
(12,339 Views)