LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sound Playback VI with a short interation time and avoid the sound quality degrading?

I am trying to playback audio files using hardware controls to adjust the output level. The problem is the code reads a chunck of audio then multiplies the chuck by a vaue read from an analogue voltage. If I want the user to be able to control the sound level accuartely I must shorten the chunk time - this leads to clipping as the chunks do not zero fade in between themselves. Does anyone have a solution to this problem? Thanks Greg
0 Kudos
Message 1 of 6
(3,019 Views)
You could try the windows mediaplayer activex version. Her you will be able to control the volum in the GUI. But the volum setting is read only. You could also try the free VLC activex version. I have made a very crude example for you.


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

Hi

 

Is there any chance you could post your VI? It can be quite helpful to see exactly what is going on the code. Also, what hardware are you using to control the output level and what version of LabVIEW are you using? If you let me know then I'll be able to take a more in-depth look into the issue. Looking forward to hearing from you,

 

Best Regards

Jeremy T
Technical Marketing
NI
0 Kudos
Message 3 of 6
(2,966 Views)

The sound system behaves much like files. The sound Task ID is the same as a file refnum. Anyway i think it is solved now 

EDIT

Oops found a smal bug in the case handling the meter event. Change the output to NewVSmiley Surprisedal

Message Edited by t06afre on 12-11-2008 04:31 AM


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 4 of 6
(2,961 Views)

Hi Guys thanks for the replys. I am using Labview 8.2 and am taking in a analog signal via the NI USB 6009 Board. Attached is the code I have been working on - I hope you can shed a little light on this problem for me!

 

Cheers

 

Greg 

0 Kudos
Message 5 of 6
(2,933 Views)

Hi Greg

 

I've been taking a look at the issue, but without being able to run the VI, I've been unable to find any obvious solution to the problem. Is there any chance you could also post the subVIs? They are named 'Analog Input (1 sample).vi' and 'Sound File Input.vi'. If I have these then I can run the VI and experiment with a thing or two.

 

Looking forward to hearing back from you,

 

Thanks

Jeremy T
Technical Marketing
NI
0 Kudos
Message 6 of 6
(2,898 Views)