[Gcblue-commits] gcb_wx/src/common tcOggStreamer.cpp,1.15,1.16
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2005-03-19 15:31:21
|
Update of /cvsroot/gcblue/gcb_wx/src/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8388/src/common Modified Files: tcOggStreamer.cpp Log Message: OpenAL++ issues, fixed minimization of world map, shift+left click now changes theater on world map Index: tcOggStreamer.cpp =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/src/common/tcOggStreamer.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** tcOggStreamer.cpp 15 Mar 2005 00:36:32 -0000 1.15 --- tcOggStreamer.cpp 19 Mar 2005 15:31:08 -0000 1.16 *************** *** 156,162 **** (sourceState == openalpp::Initial)) { ! stream = new openalpp::FileStream(queuedSong); ! source->setSound(stream.get()); // crashes this way ! //source->setSound(new openalpp::FileStream(queuedSong)); // big memory leaks this way source->play(); queuedSong = ""; --- 156,164 ---- (sourceState == openalpp::Initial)) { ! source = new openalpp::Source; ! source->setAmbient(); ! source->setGain(volume); ! source->setSound(new openalpp::FileStream(queuedSong)); ! source->play(); queuedSong = ""; |