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:
@@ -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()
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user