473,696 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access is using something to play audio files. How can I find out what it is?

MLH
I have some audio help files that play fine from within Access 97
and Access 2.0. Both are running on a Windows XP box. But I
do not know what program plays the files.

If I click Start, Run and type in c:\MyApp\MyHelp \Help1.wav,
Windows Media Player tries unsuccessfully to play the wav file.
It err's saying ClassFactory cannot supply the requested class.
But WMP has no problem at all playing c:\windows\syst em32\
ALSNDMGR.WAV. That goes off without a hitch.

I'm quite certain that Access is not playing sounds with WMP.
So, what is it using?
Nov 13 '05 #1
22 3756
MLH <CR**@NorthStat e.net> wrote in news:m3lvc19tjr rbleo1e8hhugitj bkn3h9et9@
4ax.com:
I'm quite certain that Access is not playing sounds with WMP.
So, what is it using?


QuickTime?
Nov 13 '05 #2
MLH
It has been suggested that Access is using Quick Time
to play audio files. How can I determine what Access is
using to play the files?
Nov 13 '05 #3
> It has been suggested that Access is using Quick Time
to play audio files. How can I determine what Access is
using to play the files?


You could try looking in the process list under task manager.

Take a look before and during file play - see which process are new, then if
the name is not obvious google it.

Also you could try looking at the file mapping for wav files to see which it
is associated with.

HTH

Diablo
Nov 13 '05 #4
MLH
Thx Diablo.

I'll try the first of you suggestions. I already know the latter, as
the wav extension file association setting is for Windows Media
Player. That's what launches when I dbl-click a wav file. I'm curious
to know if Access has a setting that specifies the player to use.

You could try looking in the process list under task manager.

Take a look before and during file play - see which process are new, then if
the name is not obvious google it.

Also you could try looking at the file mapping for wav files to see which it
is associated with.

HTH

Diablo


Nov 13 '05 #5
MLH
I looked at both the process list and the applications list in there.
Nothing changes when I play an audio file to indicate what tool
is playing it. My app shows as "not responding" during the play.
I would have expected that. Its as if the player takes control of
the entire application. I can't click anything during audio play,
keystrokes are ignored. The app is LOCKED during that time.

I did sometimes see the application name come up a 2nd time
in Windows Task Manager's Applications tab. But I saw no
changes under the Processes tab. That's disappointing.
Nov 13 '05 #6
MLH
I also noted that CPU usage stays quite low (2% - 3%) during audio
play. This is the normal level I see if I'm doing nothing at the
console - no mouse or keyboard activity. That would have been
predictable, as the audio file is uncompressed. Nothing happening
but I/O.
Nov 13 '05 #7
MLH wrote:
It has been suggested that Access is using Quick Time
to play audio files. How can I determine what Access is
using to play the files?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Some suggestions:

Look in the application for a file name that has the QuickTime
extension, which I don't know. Probably .qt or something like that.

Where in your application does the tune play? If it's in a form, then
what happens before the tune plays? Open the form in design view & go
to the event that occurs before the tune plays and see if there is a
file name w/ a weird extension or the QT extension.

Place a Breakpoint on the event procedure that occurs before the tune.
Run the event. Step thru the VBA commands until the tune plays - what
command occurred before the tune played? There's probably a file name
there, or a reference to one.

If that doesn't work, then - is there an ActiveX control on the form?
Does it have a file name property that indicates a QT file?

--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQtFraYechKq OuFEgEQIstQCeLL IUnj5Os6wSvDmu9 f45HYxtZxoAnjQM
j3ROkW35Xdn29Gq 9clfltnqi
=KVKM
-----END PGP SIGNATURE-----
Nov 13 '05 #8
MLH
Here's the code line invoking play of audio file...
PlayHelp = fPlayStuff("C:\ Program Files\TowPack\h elp\Help-101.wav", 0)

And here's my standard module (basSoundFNs) contents...
'************** **** Code Start *************** ******
' This code was originally written by Dev Ashish.
' It is not to be altered or distributed,
' except as part of an application.
' You are free to use it in any application,
' provided the copyright notice is left unchanged.
'
' Code Courtesy of
' Dev Ashish
'
Public Const pcsSYNC = 0 ' wait until sound is finished playing
Public Const pcsASYNC = 1 ' don't wait for finish
Public Const pcsNODEFAULT = 2 ' play no default sound if sound doesn't
exist
Public Const pcsLOOP = 8 ' play sound in an infinite loop (until
next apiPlaySound)
Public Const pcsNOSTOP = 16 ' don't interrupt a playing sound

'Sound APIs
Private Declare Function apiPlaySound Lib "Winmm.dll" Alias
"sndPlaySou ndA" _
(ByVal lpszSoundName As String, ByVal uFlags As Long) As Long

'AVI APIs
Private Declare Function apimciSendStrin g Lib "Winmm.dll" Alias
"mciSendStringA " _
(ByVal lpstrCommand As String, ByVal lpstrReturnStri ng As String,
_
ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long

Private Declare Function apimciGetErrorS tring Lib "Winmm.dll" _
Alias "mciGetErrorStr ingA" (ByVal dwError As Long, _
ByVal lpstrBuffer As String, ByVal uLength As Long) As Long
Function fPlayStuff(ByVa l strFilename As String, _
Optional intPlayMode As Integer) As Long
'MUST pass a filename _with_ extension
'Supports Wav, AVI, MID type files
Dim lngRet As Long
Dim strTemp As String

Select Case LCase(fGetFileE xt(strFilename) )
Case "wav":
If Not IsMissing(intPl ayMode) Then
lngRet = apiPlaySound(st rFilename, intPlayMode)
Else
MsgBox "Must specify play mode."
Exit Function
End If
Case "avi", "mid":
strTemp = String$(256, 0)
lngRet = apimciSendStrin g("play " & strFilename, strTemp,
255, 0)
End Select
fPlayStuff = lngRet
End Function
Function fStopStuff(ByVa l strFilename As String)
'Stops a multimedia playback
Dim lngRet As Long
Dim strTemp As String
Select Case LCase(fGetFileE xt(strFilename) )
Case "Wav":
lngRet = apiPlaySound(0, pcsASYNC)
Case "avi", "mid":
strTemp = String$(256, 0)
lngRet = apimciSendStrin g("stop " & strFilename, strTemp,
255, 0)
End Select
fStopStuff = lngRet
End Function

Private Function fGetFileExt(ByV al strFullPath As String) As String
Dim intPos As Integer, intLen As Integer
intLen = Len(strFullPath )
If intLen Then
For intPos = intLen To 1 Step -1
'Find the last \
If Mid$(strFullPat h, intPos, 1) = "." Then
fGetFileExt = Mid$(strFullPat h, intPos + 1)
Exit Function
End If
Next intPos
End If
End Function

Function fGetError(ByVal lngErrNum As Long) As String
' Translate the error code to a string
Dim lngx As Long
Dim strErr As String

strErr = String$(256, 0)
lngx = apimciGetErrorS tring(lngErrNum , strErr, 255)
strErr = left$(strErr, Len(strErr) - 1)
fGetError = strErr
End Function
Function fatest()
Dim a As Long
a = fPlayStuff("C:\ winnt\clock.avi ")
'a = fStopStuff("C:\ winnt\clock.avi ")
End Function

'************** **** Code End *************** ******

Nov 13 '05 #9
MLH wrote:
Here's the code line invoking play of audio file...
PlayHelp = fPlayStuff("C:\ Program Files\TowPack\h elp\Help-101.wav", 0)

And here's my standard module (basSoundFNs) contents...
'************** **** Code Start *************** ******
' This code was originally written by Dev Ashish.
' It is not to be altered or distributed,
' except as part of an application.
' You are free to use it in any application,
' provided the copyright notice is left unchanged.
'
' Code Courtesy of
' Dev Ashish
'
Public Const pcsSYNC = 0 ' wait until sound is finished playing
Public Const pcsASYNC = 1 ' don't wait for finish
Public Const pcsNODEFAULT = 2 ' play no default sound if sound doesn't
exist
Public Const pcsLOOP = 8 ' play sound in an infinite loop (until
next apiPlaySound)
Public Const pcsNOSTOP = 16 ' don't interrupt a playing sound

'Sound APIs


The above "Sound APIs" suggests that there is a Windows core library capable of
playing sound. I would guess that Media Player makes calls to those same APIs
and that in fact Access is not using ANY *program* to play those sound files.
It is using the same API calls that other media programs might call. I am sure
that Access can produce sounds when Media Player is not even installed.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
7306
by: Steve K | last post by:
Hi, I'm designing a website for the Cornell Undergraduate Business Program where the client wants faculty and student profiles to be interspersed throught the site. These profiles are contained in small boxes or tables with their bio or a statement from the student, etc., etc. The client wants an audio clip to play when the user clicks on the audio
0
948
by: julio | last post by:
I have an application developed in .net, that is essentially an audio player, it can perform searches on a db on a server, and then play audio tracks (the audio tracks too are on a server, another machine on the intranet) this system has always worked great, and accessing mp3 files on the server is immediate on the 100 Mb intranet. I have noticed that installing sp2 a BIG delay is introduced while opening audio files to play, it is 1...
0
2342
by: laredotornado | last post by:
Hello, I want to play an audio file by clicking on an audio icon and not having the page switch out underneath. Right now the code I have is ... <html> <head> <title>Dictionary: homeostasis</title> <link href="liveink.css" type="text/css" rel="stylesheet"/> </head> <body>
5
1985
by: Lauren Wilson | last post by:
Hi Folks, I have an Access 2k app that is often run on a LAN with several users. Unfortunately there is one feature that fails to work in that setup. Our app allows the user to play WAV audio files through their sound card that is connected to their phone through a proprietary piece of hardware. This feature works fine on the machine that hosts the back end data base. It does NOT work for a client PC because, for whatever reason,...
3
1407
by: ACaunter | last post by:
Hi all, I was wondering if there was a way a client's machine could play audio or view a word document which is stored on the server, without having them download it first. This will be done over the web with an asp.net application. -- AdamPC@hotmail.com
0
257
by: julio | last post by:
I have an application developed in .net, that is essentially an audio player, it can perform searches on a db on a server, and then play audio tracks (the audio tracks too are on a server, another machine on the intranet) this system has always worked great, and accessing mp3 files on the server is immediate on the 100 Mb intranet. I have noticed that installing sp2 a BIG delay is introduced while opening audio files to play, it is 1...
9
5606
by: Morris Neuman | last post by:
Im working with VS 2005 and trying to use a Hyperlink field in a datagrid to play a wave file that is not located in the website folders but is in a plain folder on the same machine, windows 2003 server, WMP 10.0 . If I type the full path in an IE address field it plays the file in WMP When I test my Web page ( running the debugger in VS.) The datagrid has a column called "MsgFile" with the full path to the wave file e.g....
13
4882
by: anil.rita | last post by:
When the user chooses an AV file to play, based upon the type of file, I want to use the default installed media player to play it. I am wondering if this is a good way - any alternatives, suggestions or improvements? if( wmv file) document.write("<OBJECT id=Player classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 height="354" width="479">
5
2153
by: | last post by:
Hello, I am wrtting a program that does some sound effects... the files are stored in a subfolder in the application folder... and I check the existence of the files before calling the method to play the sound. It works perfectly well in Windows XP, but when I move my application to a Vista machine, the sound does not play... I used a debug statement to confirm that the files are seen in the code but somehow it does not play... If I use...
0
8597
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9145
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8880
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8853
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7703
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6515
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4611
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
1992
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.