audio debugging

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4912 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2010-05-18 16:44:08 +00:00
parent 5835817777
commit d240a28322
3 changed files with 9 additions and 2 deletions
+2
View File
@@ -23,6 +23,7 @@ source::~source()
void source::lock()
{
locked = true;
DEBUG("source locked, " << lastmillis);
}
void source::unlock()
@@ -31,6 +32,7 @@ void source::unlock()
owner = NULL;
stop();
buffer(0);
DEBUG("source unlocked, " << lastmillis);
}
void source::reset()
+2 -1
View File
@@ -170,7 +170,8 @@ void location::update()
case AL_STOPPED:
case AL_PAUSED:
case AL_INITIAL:
stale = true;
stale = true;
DEBUG("location is stale");
break;
}
}
+5 -1
View File
@@ -147,12 +147,16 @@ void sourcescheduler::releasesource(source *src)
ASSERT(src->locked); // detect double release
if(!src) return;
src->unlock();
DEBUG("unlocking source");
src->unlock();
if(sources.length() > numsoundchannels)
{
sources.removeobj(src);
delete src;
DEBUG("source deleted");
}
}