LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

play sound file

Hello again,

 

Your configuration seems fine, but maybe taking a step back and going back to basics is worth a try...  are you sure you have the right device ID selected? Is the X-Fi expecting any other signal other than a 16-bit, 44.1kHz signal? Check all variables and if it still persists I recommend calling Creative, as this one lies then on the driver im SURE! They never were good on the driver front... Thats why I never bought one after my sound blaster AWE32! lol

 

AL.

:. LV2010 SP1 ... W7 .:
0 Kudos
Message 21 of 31
(3,674 Views)

Hi David or AL,

I would like to know further about the method to play a waveform which contained the 6 channels slot. For your information, I am using the Labview 8.5, do you have the diagram of it? I need it for an audio testing project which is to test a wavefile that contained 6 channels slot and play it into the different audio devices simultaneously. This us to verify all the channel slot (audio devices) with the tone emitted.

I urgently need helps for that.

Welcome any advise.

Thanks in advance.  

0 Kudos
Message 22 of 31
(3,297 Views)

Hi ElvisYEOH,

 

I think you are asking about a diagram of the VI that David and AL were talking about.  Al had posted his VI but in a newer version of LabVIEW.  I have saved the VI for an older version of LabVIEW (8.5) for you to take a look at it.

Matt S.
Industrial Communications Product Support Engineer
National Instruments
0 Kudos
Message 23 of 31
(3,277 Views)

Hi ElvisYEOH,

From experience, the multichannel simultaneous method will work with some soundcards but not others (all obviously need to be something like a 7.1ch soundcard).

Mostly, that's due to the soundcard driver itself. Hopefully, your soundcard will work fine! If not, perhaps try a few others.

 

Some more expensive soundcards handle each channel output pair seperately, which is great if you only want to play out channel 3&4 for example, but these soundcards can't play out of all channels "simultaneously" (there will be some lag between different channels). - Best bet, try to choose a soundcard that doesn't have individual control over each channel output pair.

0 Kudos
Message 24 of 31
(3,263 Views)

Hi Matt. S and Tinnitus boy,

Thanks for the information. Actually, I manage to convert the vi into lv8.5.

However, I observe the USB audio device that enumerate in the window is not the 6 channels device, it is 2 channels device. But my project leader insist me to use labview to play the 6 channels wav file into this device. I did try that but the labview prompted with the message of "driver format not supported" and unable to play the wavefile (errorcode 4803). With the information prompted, I managed to find out the labview is getting the device's information from window as 2 channels device and this clearly explain the root cause. However, when I play the same waveform file (6 channels) in window media play or foobar player, the device able to sound in each channel slot and this make me confuse again. 

Could anyone explain this to me? Is that the media player able to decode something that labview can't support?

Is that possible to solve this with labview?

 

Thanks again.

0 Kudos
Message 25 of 31
(3,253 Views)

 

To be clear, the settings for your soundcard output only show a stereo pair output for the whole USB soundcard?

(i.e. what do you see if you go to the speaker settings, and are you able to adjust the settings of the device anywhere to be a 5.1 channel device?)

 

 

 

Sound settings.jpg

0 Kudos
Message 26 of 31
(3,245 Views)

If you only have a 2 channel sound card you must mix the 6 channels into two channels in some way. Or just use the left and right channel data. If the Labview VIs for reading WAV files can read a six channel WAV file. It should be no problem mixing the  the data. However I do not know how this downmixing is done correctly. Maybe your boss can help you out here

Also if the Labview WAV VIs can not handle 6 channels audio. You should be able write your own software for parsing the WAV file data. If you post some example of your sound file. I may be able to help. WAV files can be quite large so you must zip it down. Still it could be to big to post on the forum. So you may have to use some free file hosting service.



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 27 of 31
(3,231 Views)

that good feedback, you learn here too, it is very true that the WAV format is important that I leave a exemplo can contribute, it works for me very well in LV 2012 - W7 system

Download All
Message 28 of 31
(3,183 Views)
Message 29 of 31
(3,152 Views)

Can I recommend the VI on this website. I had the same problem with a Soundblaster X-Fi card, but this VI worked for me.

http://www.zeitnitz.de/Christian/waveio

0 Kudos
Message 30 of 31
(2,904 Views)