yvanvds / yse-soundengine

advanced 3D sound engine
Eclipse Public License 1.0
234 stars 33 forks source link

YSE engine init unsuccessfully after close #10

Closed niujingqian closed 6 years ago

niujingqian commented 8 years ago

my code: YSE:System().init(); create Sound........ YSE::System().close(); all go well; I open YSE engine again YSE::System().init(); create Sound().... Sound can not play. Why?? Thanks a lot!

///////////////////////////////////////////////// void go() { YSE::System().init();

YSE::System().close();

/////////////////////////////////////////////

yvanvds commented 8 years ago

I guess something cannot be initialized twice. But there's no reason to do that. Use init when you start your application, use close when you shut it down. You don't have to close the engine between playing sounds.

niujingqian commented 8 years ago

ATL control belong to a web page,the web page has a control in it,the control can be closed.every web page is a process. Process is not closed when closing a control

yvanvds commented 6 years ago

Better close this because i have no clue at all what this is about :-)