|
With Dependency Walker you have to differentiate between delay-loaded DLLs and static DLLs. Delay-loaded DLLs have an hourglass icon against them in the tree and module list; they're loaded when the first function in them is actually referenced. It's unlikely that DWMAPI.DLL is the problem, as it shouldn't be actually referenced by code running on XP.
In my case DWMAPI.DLL always shows up as missing when checking almost anything, because it's delay-loaded by IEFRAME.DLL if you've installed Internet Explorer 7 on Windows XP. In turn that's delay-loaded by MSHTML.DLL, which is delay-loaded by SHDOCVW.DLL, and that by SHELL32.DLL.
There will be some other DLL that isn't present.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
Yep, I realized that the DwmApi lib is delay loaded.
On the other hand it was the only file I found to be missing. I guessed that it could not be this file, but thought "I don't know everything so it might be this file anyway".
Something has happened to my system, or I am making some kind of mistake, but neither my driver nor the UMDF example drivers will install correctly. Every single one fails to start with error code 10.
The most simple one is 'socketecho'. I have installed previously and even though it didn't work as I expected in overlapped mode, it installed and started as expected at that time. Now it doesn't start when I install it any longer.
I've tried to install the driver on other machines as well, but still with error code 10, so I guess it's related to the build tools and/or the .inf-file.
This is my first contact with WDF/UMDF and I haven't found very much help on the net. It seems like the framework isn't very well utilized. Even the forum on the MS Connect site contains about 10 posts from the last two years.
Any idea?
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
|
Hi there!
I am currently a student who is starting my third year software engineering project and the project I have decided to do is to write a music player (based on tracker modules like MOD/XM/S3M etc, but using my own concept.) for particularly a Windows platform (my computer is Windows XP OS).
For writing a player at such a level I would like to start on writing a sound mixer to mix audio data to a buffer and then send to an available sound card, whether onboard or external hardware.
I was wondering if anyone has some background on how to do processes such as detecting a sound card on your machine and then control it from there. I know there are libraries such as DirectSound and OpenAL, but looking at some open-source module players such as mini-fmod, the source seems to use the low level technologies, which I would reckon would be faster.
I am quite new to this stuff and want to try and overcome some problems in device driver programming. I recently looked up on WDM programming but at the moment it's far from my level of knowledge and that I'm not sure if that's the way to go.
Any hints, references, previous message boards, links or online books to these kind of tutorials/resources would be much appreciated, as I'm having a tough time looking for these at present.
Thanks & greetings!
-
OCrowley
|
|
|
|
|
OCrowley,
What a great concept. I visited the FMOD API Feature Description[^] site, just to get an idea of what you are attempting to do.
I think alot depends on just what features you actually want to make available in your application. I would avoid writing a kernel mode audio-streaming driver, if possible, because they are so incredibly difficult to get right. However, there are many references for this type of programming, spread all over the internet. And, you are correct, determining your sound card capabilities is the most important initial step.
You might want to check out SourceForge. Especially, the Media Player Classic[^] Project. This player also playes video and assorted graphics files, but the site contains an enormous amount of source code.
Other useful sources of information are:
Microsoft DirectShow API reference[^]
Microsoft DirectSound API[^]
Windows Media Audio and Video Codec and DSP APIs[^]
Windows Multimedia Musical Instrument Digital Interface (MIDI)[^]
The CodeProject has numerous articles on audio programming with available source code[^]
Several example articles:
CodeProject's Developing MIDI Application with DirectMusic[^]
CodeProject's Converting Wave File to MP3 Format with the DirectShow API[^]
Both the Steinberg VST Plug-In Developer's SDK[^], and Cakewalk DXi Plug-In Developer's SDK[^], are Open Source Audio Synthesizer Plug-In Components.
Also, you will have numerous audio library dependencies. Ogg Vorbis is Open Source. Vorbis Audio Compression[^], and,
Ogg Vorbis Source Download[^]. There are several Ogg Vorbis players on Sourceforge: Ogg Vorbis Player[^] andCool Player[^]
The Synthesis C++ Toolkit SDK[^] is another Open Source Audio Signal Processing Library.
Also, Open Source, and used in many applications is:
SourceForge, LAME Project, MP3 Audio Encoder[^]
There are also many informative web sites out there. Here are some that I found to be interesting:
Stanford University, Center for Research in Music and Acoustics, Audio Signal Processing Overview[^]
Wave File Format FAQ[^], and C++ source code for reading and writing Wave Files[^]
Audio Programming at Harmony Central[^]
DSP Guru, Digital Signal Processing Central[^]
Music-DSP, Source Code Archive[^]
Technical Windows Programming Forums and Blogs:
Google, DirectX, Audio Forum[^]
WDM Kernel Streaming Audio Driver Developers Blog[^]
Larry Osterman's Audio Programming Blog[^]
Too much information? Brain feel like it's gonna explode?
|
|
|
|
|
Hello Baltoro! Thanks for your response.
I must say that these links you have provided are extremely useful and that many are exactly the resources I have been looking for, I thank you so much for that!! ...and no, my brain isn't overloaded now, as this is information I have been seeking for a long time! hehe
I'll see how I can do with this information you have provided so far.
Once again, thank you so much !
Best regards,
OCrowley.
p.s. more information is welcome from anyone else so that I can progress as smooth as possible.
|
|
|
|
|
OCrowley,
I had a similar concept for a music application awhile back, and so I created an HTML page of useful sites for reference. It's amazing how much technical information is out there on the Internet on just Digital Signal Processing (DSP), although, you probably would not use it in a tracker.
DirectSound has a device capabilities query function: Device Capabilities[^], which returns a DSCAPS Structure[^].
Something to keep in mind, the DirectShow API is only available with the Windows XP SDK version; from what I've heard, it is NOT compatible with the Vista SDK.
|
|
|
|
|
Hi,
I want to get information about hardware temperature, voltage and fan speed. When I use WMI functions - no results!!
I' ve download some programms that get such information and I've interested how this programms doesn't use any external DLLs?? Whether there is other way to view information from sensors (instead WMI functions)??
Thanks!!!
modified on Tuesday, May 27, 2008 5:48 AM
|
|
|
|
|
Same problem for me also.
My BIOS showing the udpated CPU Fan speed every time.
How can i read that from BIOS ?
I'm not sure about that, its available with all BIOS versions..
|
|
|
|
|
I think assembler insertions into C++ code can do it, but I haven't got any theories how to realise it.
|
|
|
|
|
mm..
still i'm googling..
but no way !!
|
|
|
|
|
So, I'm googling a lot too. I asked this question on many forums, but nobody knows how to do it, that's why I had posted here.
|
|
|
|
|
Hi, I have a problem with my Samsung DVD-Rom. The problem is when my computer is turn on, the DVD tray always come out. Whether i try to push the button to make it come into the computer, but it always eject by itself. I don't know why cause this problem and it just happend in this week. Another application my system is running fine except this DVD-Rom. Does anyone has any experience to solve this problem? Thank in advance
|
|
|
|
|
Sounds like the drive has died. Buy LG next time, they've never let me down.
There is a chance something you installed the day before is doing this but unlikely.
|
|
|
|
|
Trollslayer wrote: Sounds like the drive has died
I can't say it is died or not. But when I try to use my hand to push it in for a while, it could play the movie as normal. But if i finsih my playing DVD and eject the disc and try to turn the tray in again, its always come out. I don't know whether it is completly died or not. Please suggest me. Thank!!!
|
|
|
|
|
|
Well, the closing mechanism of CD and DVD drives is supposed to not close the tray with force and reopen if something (i.e. your hand) gets in the way.
Add to this that open trays close automatically at powerup, and you come to the conclusion that the loader mechanism is broken. Which makes a new drive mandatory at some point.
Cheers,
Sebastian
--
"If it was two men, the non-driver would have challenged the driver to simply crash through the gates. The macho image thing, you know." - Marc Clifton
|
|
|
|
|
Thank you very much for your support.
|
|
|
|
|
Would someone know the difference between the two Api's
Why would someone use one instead of the other
|
|
|
|
|
ReadProcessMemory is for reading the memory of a different process. MemCpy is for copying memory to another location but only works inside the process that calls it.
|
|
|
|
|
Thankx
you have got a point this question probably wasn't that complicated and I should of researched it an come up with the answer on my own sorry to waste your time
|
|
|
|
|
As long as you know how you can do better in the future.
|
|
|
|
|
Make a Donation ????
Truth is CodeProject is free and has been more helpfull that I could have imagined
When I rate this FREE site against others like ExpertsExchange it doesn't even come close
So ........
I look what I can do and
Secondly not abuse the site
|
|
|
|
|
The best donation is to be part of the community.
|
|
|
|
|
Can Any Of You Explain How Can I Print The Contents Of FAT32 Table (For My NAND Flash).
Am Using WinCE 5.0.
Thanks In Advance.
|
|
|
|