Sounds

  • Thread starter Thread starter Jason
  • Start date Start date
J

Jason

I am currently usung BEEP command. Is there a way to play other sounds
(MID/WAV)? I could open a file but this would open Windows media player.

Thanks,
J.
 
Using Access 97.

I am currently usung BEEP command. Is there a way to play other sounds
(MID/WAV)? I could open a file but this would open Windows media player.

I've found how to play wav's but MP3's are being ignored.
Thanks,
J.
 
Looks like this plays in medai player. I jsut want the sound like the
current API without bringing up media player for each sound.
Thanks,
 
I tried the sample mdb file - it played a full MP3 file fine but not the
short one that I had edited.
 
Also I am now getting The specified alias is already being used in this
application. Use a unique alias. (-2147221215) in .cmdStart_Click
 
Also I am now getting The specified alias is already being used in this
application. Use a unique alias. (-2147221215) in .cmdStart_Click

Also How do I get MP3's and WAV's to show. I've tried
strFilter = ahtAddFilterItem(strFilter, "MP3s WAVs (*.MP3, *.WAV)", "*.MP3,
*.WAV")

Works but lists non music:
strFilter = ahtAddFilterItem(strFilter, "All (*.*", "*.*")
 
Also I am now getting The specified alias is already being used in this
application. Use a unique alias. (-2147221215) in .cmdStart_Click

Also How do I get MP3's and WAV's to show. I've tried
strFilter = ahtAddFilterItem(strFilter, "MP3s WAVs (*.MP3, *.WAV)", "*.MP3,
*.WAV")

Works but lists non music:
strFilter = ahtAddFilterItem(strFilter, "All (*.*", "*.*")

How do I get the default directoy to change from My Documents to currentdir?

Thanks,
 
I am now getting The specified alias is already being used in this
application. Use a unique alias. (-2147221215) in .cmdStart_Click

Also How do I get MP3's and WAV's to show. I've tried strFilter =
ahtAddFilterItem(strFilter, "MP3s WAVs (*.MP3, *.WAV)", "*.MP3, *.WAV")

Works but lists non music:
strFilter = ahtAddFilterItem(strFilter, "All (*.*", "*.*")

How do I get the default directoy to change from My Documents to
currentdir?

Also small mp3 file doesn't play. Plays fine in Media player. The small wav
file plays fine in Access. Both created with Audio city (export selection).
 
For the Alias error, remember that you're supplying an Alias when you call
the mciSendString function. Once you've used the open command with a given
Alias, you must make sure you close that Alias before you can issue a new
open command.

For the file, try

ahtAddFilterItem(strFilter, "MP3s WAVs (*.MP3, *.WAV)", "*.MP3;*.WAV")
 
I am now getting The specified alias is already being used in this
application. Use a unique alias. (-2147221215) in .cmdStart_Click. How do I
stop this?

How do I get the default directoy to change from My Documents to currentdir?

Thanks,
Jason
 
It's pretty hard for me to debug your error if I don't know the code you're
using! (My sample database works...)

Where do you want the default directory to change? In the Windows Open File
dialog? Assuming you're using the code from
http://www.mvps.org/access/api/api0001.htm one of the parameters you can
pass to ahtCommonFileOpenSave is InitialDir.
 
Command to play sound:
LResult = sndplaysound(SoundFile, SND_NODEFAULT + SND_ASYNC)

Command to open file solved

Also how to stop mp3's and wav files if they are over a certain length (once
they have played for this time).
 
Sorry, that sound command works (was using wav due to mp3 fault). The faulty
one is:
Err.Raise vbObjectError + lngReturn, "PlayMP3", TrimNull(strReturn128)

Command to open file solved

Also how to stop mp3's and wav files if they are over a certain length (once
they have played for this time).
 
Command to play sound:
LResult = sndplaysound(SoundFile, SND_NODEFAULT + SND_ASYNC)

Command to open file:
If IsMissing(InitialDir) Then InitialDir = CurDir
But CurDir has no dim statement in that module.
I can set InitialDir to currentdir but now I need to find out if there is a
current file on the form and use that directory. Then if that is blank then
use currentDir.

Also how to stop mp3's and wav files if they are over a certain length (once
they have played for this time).
 
Back
Top