DevMaster.net Forums
[[ Home | Forums | 3D Engines Database | Wiki | Articles/Tutorials | Game Dev Jobs | IRC Chat Network | Contact Us ]]

Go Back   DevMaster.net Forums > Programming & Development > Sound and Music Programming
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
Old 06-06-2006, 02:49 PM   #1
radioman
New Member
 
Join Date: Jun 2006
Location: lithuania
Posts: 2
Default dsound streaming in dll, notification problem...

this is example what i do:

http://safariexamples.informit.com/0...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???????????
radioman is offline   Reply With Quote
Old 06-06-2006, 05:30 PM   #2
Reedbeta
DevMaster Staff
 
Join Date: Oct 2004
Location: Seattle, WA
Posts: 3,707
Default Re: dsound streaming in dll, notification problem...

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).
___________________________________________
Currently working at Sucker Punch
reedbeta.com - OpenGL demos and other projects
Luabridge - a lightweight, dependency-free C++/Lua binding library.
CD Lite - an unobtrusive, minimal CD player application for Windows.
Reedbeta is offline   Reply With Quote
Old 06-06-2006, 10:12 PM   #3
juhnu
Valued Member
 
Join Date: Aug 2005
Location: Seoul
Posts: 272
Default Re: dsound streaming in dll, notification problem...

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.
juhnu is offline   Reply With Quote
Old 06-07-2006, 10:48 AM   #4
radioman
New Member
 
Join Date: Jun 2006
Location: lithuania
Posts: 2
Default Re: dsound streaming in dll, notification problem...

thanks, i try to do it without notification message, but it's be good to do with her...
radioman is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump


All times are GMT -7. The time now is 05:15 AM.


Powered by vBulletin
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.