Archived

This topic is now archived and is closed to further replies.

draqza

[dxaudio] Why does it hang?

Recommended Posts

draqza    122
I''m working on the sound engine for a game using DXAudio (Dx8) and all I have are the initialization functions. I did a basic WinMain to make sure the constructor would work right, and it seemed to run fine. That''s when I remembered that I hadn''t put any error trapping in the DX Audio Init portion, and when I added a result-catching HRESULT and error checking, it started to hang in the init. Here''s the callstack that seems relevant: DMIME! 7730e440() CSoundEngine::DirectXAudioInit() line 78 + 37 bytes CSoundEngine::CSoundEngine() line 20 + 8 bytes I created a global pointer to CSoundEngine, and then inside WinMain, to initialize it, I use pSoundEngine=new CSoundEngine; Any ideas? -- WNDCLASSEX Reality; ... ... Reality.lpfnWndProc=ComputerGames; ... ... RegisterClassEx(&Reality); Unable to register Reality...what''s wrong? --------- Dan Upton Lead Designer WolfHeart Software

Share this post


Link to post
Share on other sites