LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"play sound.vi" delay on first use

Solved!
Go to solution

 

Could someone try the following

play sound file.jpg

On my laptop there is a 3s delay when this is first run. If the vi is re-run the sound plays back instantly.

Close the vi and open it again and the 3s delay is back the first time it is run. 

(The timeout connection defaults to 0 this is defined as an instant return - see the help)

Is this a LabVIEW problem or my system? My workaround is to play a sound at the startup of my application so that all future sounds are instant.

I'm using LabVIEW version 8.5 on Vista.

Any ideas?

Al

0 Kudos
Message 1 of 8
(4,339 Views)

yes I get this delay as well I don't know why though hmmm

Message Edited by Harold Timmis on 06-27-2009 05:15 PM
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 2 of 8
(4,336 Views)

Hi all,

 

I did a simple test on my system and it was working fine, I didn't notice any delay as 3s long.

 

The Play Sound File.vi uses the DirectSound API installed on your OS to talk to the drivers of the sound card. Maybe try to update your DirectX to 9.0c (the version I have) or update your sound card driver.

Best regards,

Mark M.
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 3 of 8
(4,297 Views)

I've got DirectX 10 installed (type Start/Run  and type 'dxdiag' to find out your version) My sound card driver is the Dell recommended generic Microsoft high def. audio (latest version).

To ensure the sound plays back correctly on systems I have no control over (e.g. distributed exe) I'll play a "silent" sound during the application initialisation. Unless you can think of any tricks I can do make the DirectSound API respond quicker initially?

0 Kudos
Message 4 of 8
(4,292 Views)

I leave an example that can provide, use it in your program

Message 5 of 8
(3,885 Views)

Hi,

could you save as LV11 or post a screen capture?

Thanks!

Al

0 Kudos
Message 6 of 8
(3,880 Views)

Don't encourage him. He has been spamming the board with the exact same program. It is not very good. You are better off just looking at the example that comes with LabVIEW.

Message 7 of 8
(3,877 Views)
Solution
Accepted by topic author Al1234

OK!

I had it fixed anyway with playing a silent file at startup.

 

0 Kudos
Message 8 of 8
(3,873 Views)