Sound output problems

  • Thread starter Thread starter Rolf Rosenquist
  • Start date Start date
R

Rolf Rosenquist

I have been playing a short wav file when a certain result occurs, with the
line:
Call Shell("c:\folder1\mplayerc /minimized /play /close
c:\folder2\soundfile.wav", 0)

When I used W98 with Access 2000, the old normal mpayer.exe worked, but
after change to Win XP that old program could not be used at all. So I found
the Mplayer Classic to do the job. And it works, but it takes several
seconds before the sound comes out and that slows the process down too much.

I think it has to do with the fact that the player shall be loaded each
time and I cannot get it to stay resident in memory. It does not work when
omitting the switch /close. Does anyone know of any other small player
program or perhaps a better method to get the wav file start playing
immediately, or at least quicker?

/ Rolf
 
I have been playing a short wav file when a certain result occurs, with the
line:
Call Shell("c:\folder1\mplayerc /minimized /play /close
c:\folder2\soundfile.wav", 0)

When I used W98 with Access 2000, the old normal mpayer.exe worked, but
after change to Win XP that old program could not be used at all. So I found
the Mplayer Classic to do the job. And it works, but it takes several
seconds before the sound comes out and that slows the process down too much.

I think it has to do with the fact that the player shall be loaded each
time and I cannot get it to stay resident in memory. It does not work when
omitting the switch /close. Does anyone know of any other small player
program or perhaps a better method to get the wav file start playing
immediately, or at least quicker?

/ Rolf

Have you tried this: http://allenbrowne.com/func-04.html
 
Cannot get it to work. It rendered an error by running of a function.

The listed code on the page of your link had a statement Declare Function
with Lib "winmm". What is that? I have no library with that name. How can I
correct that?

/ Rolf
 
Back
Top