09-07-2018 05:48 AM
Hello,
I have a sound file (4 tracks to have quadriphonic sound), when I play this sound with VLC, I don't have any problem but when I try to play with LabVIEW I have only the sound on the first and second but not on the tree and the four speaker. Do you know if I can communicate with API Windows 7 (dll for example) to play my sound file with my hardware which is TASCAM (US-16x08) thanks for your answers.
Best regards
09-07-2018 06:08 AM
You should be able to use VLC itself, you just need to interface with it from LabVIEW. Here are some example codes (disclaimer: I don't know anything about those codes, I just found them now and they look like something you need): https://forums.ni.com/t5/Example-Program-Drafts/VLC-scripting-in-LabVIEW/ta-p/3515450
09-07-2018 06:19 AM
Hi PiDi,
Thanks for your quickly link, i'll read this topic and i'll try it. But I wonder why we can not read a sound (Format 5.1; 7.1, quadriphonic etc...) directly in LabVIEW, probably we don't have the drivers audio to do this.
09-07-2018 06:55 AM
Well, the Sound pallete in LabVIEW calls lvsound2.dll and it's hard to say what happens inside of it. I don't know if it was ever designed to do anything else than simple mono and stereo playback, so your best way to do something advanced is external lib/soft like VLC.
You could also try to check your sound configuration in the system and see if it's configured for multiple channels (speaker properties, like this: https://www.windowscentral.com/how-manage-sound-settings-windows-10-april-2018-update ).
09-07-2018 07:13 AM
Hi,
Yes of course I have already chek my sound configuration (Windows 7, just a little change between Windows 10) if not I can't play de the sound with VLC. In your previous link, I think, it's show how to read a video with VLC dll but in my case is to read a audio file with VLC dll.
Thanks for your helps