From: Anders B. <vr-...@us...> - 2006-05-24 08:57:58
|
Update of /cvsroot/alpp/openalpp/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21260/src Modified Files: audioenvironment.cpp sourcebase.cpp streamupdater.cpp Log Message: Minor changes. Moved update source into thread safe area in streamupdater. Index: sourcebase.cpp =================================================================== RCS file: /cvsroot/alpp/openalpp/src/sourcebase.cpp,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** sourcebase.cpp 24 Mar 2005 11:47:48 -0000 1.13 --- sourcebase.cpp 24 May 2006 08:57:53 -0000 1.14 *************** *** 67,71 **** delete [] linkedsources_; ! if (alGetError() != AL_FALSE) { std::cerr << "~SourceBase() - Warning - Error deleting sources\n"; --- 67,72 ---- delete [] linkedsources_; ! ALenum status = alGetError(); ! if (status != AL_FALSE) { std::cerr << "~SourceBase() - Warning - Error deleting sources\n"; Index: audioenvironment.cpp =================================================================== RCS file: /cvsroot/alpp/openalpp/src/audioenvironment.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** audioenvironment.cpp 24 Mar 2005 11:47:48 -0000 1.9 --- audioenvironment.cpp 24 May 2006 08:57:53 -0000 1.10 *************** *** 89,96 **** switch(error) { case(AL_INVALID_VALUE): ! throw ValueError("Invalid value for gain"); ! break; default: ! throw FatalError("Error trying to set gain!"); } } --- 89,96 ---- switch(error) { case(AL_INVALID_VALUE): ! throw ValueError("Invalid value for gain"); ! break; default: ! throw FatalError("Error trying to set gain!"); } } Index: streamupdater.cpp =================================================================== RCS file: /cvsroot/alpp/openalpp/src/streamupdater.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** streamupdater.cpp 14 Nov 2005 09:07:02 -0000 1.15 --- streamupdater.cpp 24 May 2006 08:57:53 -0000 1.16 *************** *** 76,81 **** void StreamUpdater::addSource(ALuint sourcename) { - alSourceStop(sourcename); ENTER_CRITICAL; newsources_.push_back(sourcename); if(!sources_.size()) --- 76,81 ---- void StreamUpdater::addSource(ALuint sourcename) { ENTER_CRITICAL; + alSourceStop(sourcename); newsources_.push_back(sourcename); if(!sources_.size()) |