summaryrefslogtreecommitdiff
path: root/src/audiocache.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-01-27 21:16:44 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2016-01-27 21:16:44 +0100
commit353338072d43d41b416818f461a075512314587a (patch)
tree3d1e65572f0d1b3f495f2b4fa377e51bbf59a295 /src/audiocache.cc
parentd5d99e268a3a258617d0e0a1127a8c5822f5cd81 (diff)
Add debug.
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