07-29-2022 08:16 PM
I don't want to use ActiveX, I just want Labview to play music in mp3 format directly.
How can it be realized?
If you can help me,i would be appreciated.
Solved! Go to Solution.
07-29-2022 08:36 PM
You could go to the Web and see if the MP3 specifications are publicized. If so, you can write LabVIEW code taso parse how the sound waveforms are encoded, then generate LabVIEW code to produce those waveforms (either with a D/A encoder or with other hardware, or perhaps translating the MP3 API into whatever API Windows (or whatever other "sound-producing" API you choose to use.
It sounds (to me) like an awful lot of work. Maybe use some other Sound Player and write LabVIEW code to capture two channels of "sound" (as time-varying voltages at 44,100 Hz), save this (humongous) waveform file, then play it back (using two D/A channels at 44.1 kHz) through stereo speakers. This bypasses all the hard work and hidden features of MP3 and other sound APIs ...
Bob Schor
08-01-2022 04:22 AM
You can do this with the G-Audio toolkit: https://www.vipm.io/package/dataflow_g_lib_g_audio/
08-01-2022 04:50 AM
@cordm wrote:
You can do this with the G-Audio toolkit: https://www.vipm.io/package/dataflow_g_lib_g_audio/
It appears that @dataflowg has, indeed, done the work (over at least a year) to develop (and make available) the MP3 LabVIEW package that @alexander_Son was asking about. It would be helpful to the LabVIEW Community if he (or she) tried it out and, if it "solves the problem", marks @cordm's Reply as the Solution.
Bob Schor
08-01-2022 06:49 AM
Oh,thank you very much!you helped me solve a big problem!!By the way,the reason for the question is that i want to imitate a music software called NetEase Cloud. And i have aready built a framework! Thanks again.
08-01-2022 06:49 AM
thank you!
08-01-2022 03:53 PM
Umm, I think you gave the wrong person credit for the Solution! I said "It's too much work!", and @cordm mentioned the G-Audio Toolkit (which I didn't know about) ...
Bob Schor