summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/audiocache.cc11
-rw-r--r--src/drumkitloader.cc2
2 files changed, 13 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
diff --git a/src/drumkitloader.cc b/src/drumkitloader.cc
index d5803d8..e895474 100644
--- a/src/drumkitloader.cc
+++ b/src/drumkitloader.cc
@@ -41,9 +41,11 @@ DrumKitLoader::DrumKitLoader()
DrumKitLoader::~DrumKitLoader()
{
+ DEBUG(loader, "~DrumKitLoader() pre\n");
if(running) {
stop();
}
+ DEBUG(loader, "~DrumKitLoader() post\n");
}
void DrumKitLoader::stop()