![]() |
| [[ Home | Forums | 3D Engines Database | Wiki | Articles/Tutorials | Game Dev Jobs | IRC Chat Network | Contact Us ]] |
|
|
#1 |
|
New Member
Join Date: Jun 2006
Location: lithuania
Posts: 2
|
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??????????? |
|
|
|
|
|
#2 |
|
DevMaster Staff
Join Date: Oct 2004
Location: Seattle, WA
Posts: 3,707
|
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. |
|
|
|
|
|
#3 |
|
Valued Member
Join Date: Aug 2005
Location: Seoul
Posts: 272
|
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 |
|
New Member
Join Date: Jun 2006
Location: lithuania
Posts: 2
|
thanks, i try to do it without notification message, but it's be good to do with her...
![]() |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|