Jump to content


dsound streaming in dll, notification problem...


3 replies to this topic

#1 radioman

    New Member

  • Members
  • Pip
  • 2 posts

Posted 06 June 2006 - 08:49 PM

this is example what i do:

http://safariexample.../streamdata.cpp

All is right while i do it in EXE module, but my engine is in DLL, therefore i put my own class in DLL, but after that sound streaming don't work for me
(something is happend with notification event, it's not notify all the time, case WAIT_OBJECT_0 + 0: never excute).

I just export my own engine class and use int in exe, all atoher work is doing in DLL.

What i should to do, that all will be good and working???????????

#2 Reedbeta

    DevMaster Staff

  • Administrators
  • 4780 posts
  • LocationBellevue, WA

Posted 06 June 2006 - 11:30 PM

If you're using this from a DLL, WinMain won't be called, and so the notification thread would never get set up. You'll need to create the notification thread yourself as shown on lines 270-271 of that file, and possibly do other setup stuff (see the file).
reedbeta.com - developer blog, OpenGL demos, and other projects

#3 juhnu

    Valued Member

  • Members
  • PipPipPip
  • 292 posts

Posted 07 June 2006 - 04:12 AM

You could do this without using the notification messages. Just update the buffer with a certain interval. The bigger buffer you use, the less updates you need, but that would of course increase the latency on the other hand.

#4 radioman

    New Member

  • Members
  • Pip
  • 2 posts

Posted 07 June 2006 - 04:48 PM

thanks, i try to do it without notification message, but it's be good to do with her... ;)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users