summaryrefslogtreecommitdiff
path: root/src/audiocache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/audiocache.cc')
-rw-r--r--src/audiocache.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/audiocache.cc b/src/audiocache.cc
index 6d86494..ee0c8d6 100644
--- a/src/audiocache.cc
+++ b/src/audiocache.cc
@@ -40,11 +40,14 @@
AudioCache::~AudioCache()
{
+ DEBUG(cache, "~AudioCache() pre\n");
// TODO: Run through all active cacheids and release them/close their files.
deinit();
delete[] nodata;
+
+ DEBUG(cache, "~AudioCache() post\n");
}
void AudioCache::init(size_t poolsize)
@@ -222,10 +225,14 @@ void AudioCache::close(cacheid_t id)
void AudioCache::setFrameSize(size_t framesize)
{
+ printf("%s\n", __PRETTY_FUNCTION__);
+
// Make sure the event handler thread is stalled while we set the framesize
// state.
std::lock_guard<AudioCacheEventHandler> eventHandlerLock(eventHandler);
+ printf("A\n");
+
// NOTE: Not threaded...
//std::lock_guard<AudioCacheIDManager> idManagerLock(idManager);
@@ -242,7 +249,11 @@ void AudioCache::setFrameSize(size_t framesize)
this->framesize = framesize;
+ printf("B\n");
+
eventHandler.setChunkSize(CHUNKSIZE(framesize));
+
+ printf("C\n");
}
size_t AudioCache::frameSize() const