From 1662fa8a8197e62b9df3ce5ecc6f1032800a07fe Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 28 Jan 2016 08:36:37 +0100 Subject: Added debug --- src/audiocache.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/audiocache.cc b/src/audiocache.cc index ee0c8d6..1493e46 100644 --- a/src/audiocache.cc +++ b/src/audiocache.cc @@ -225,13 +225,13 @@ void AudioCache::close(cacheid_t id) void AudioCache::setFrameSize(size_t framesize) { - printf("%s\n", __PRETTY_FUNCTION__); + DEBUG(cache, "%s\n", __PRETTY_FUNCTION__); // Make sure the event handler thread is stalled while we set the framesize // state. std::lock_guard eventHandlerLock(eventHandler); - printf("A\n"); + DEBUG(cache, "A\n"); // NOTE: Not threaded... //std::lock_guard idManagerLock(idManager); @@ -249,11 +249,11 @@ void AudioCache::setFrameSize(size_t framesize) this->framesize = framesize; - printf("B\n"); + DEBUG(cache, "B\n"); eventHandler.setChunkSize(CHUNKSIZE(framesize)); - printf("C\n"); + DEBUG(cache, "C\n"); } size_t AudioCache::frameSize() const -- cgit v1.2.3