From c860412cddfb96004ded3bc0055c16308b5bc168 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gl=C3=B6ckner?= Date: Tue, 29 Mar 2016 10:50:36 +0200 Subject: made API of AudioCache's getters more consistent --- src/audio.h | 5 +---- src/audiocache.cc | 4 ++-- src/audiocache.h | 4 ++-- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/audio.h b/src/audio.h index a5ef06d..d022147 100644 --- a/src/audio.h +++ b/src/audio.h @@ -24,9 +24,6 @@ * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#ifndef __DRUMGIZMO_AUDIO_H__ -#define __DRUMGIZMO_AUDIO_H__ +#pragma once #include - -#endif/*__DRUMGIZMO_AUDIO_H__*/ diff --git a/src/audiocache.cc b/src/audiocache.cc index 65ddef9..a5fb0db 100644 --- a/src/audiocache.cc +++ b/src/audiocache.cc @@ -271,7 +271,7 @@ void AudioCache::setFrameSize(size_t framesize) event_handler.setChunkSize(CHUNKSIZE(framesize)); } -size_t AudioCache::frameSize() const +size_t AudioCache::getFrameSize() const { return framesize; } @@ -281,7 +281,7 @@ void AudioCache::setAsyncMode(bool async) event_handler.setThreaded(async); } -bool AudioCache::asyncMode() const +bool AudioCache::isAsyncMode() const { return event_handler.isThreaded(); } diff --git a/src/audiocache.h b/src/audiocache.h index 5e27cc5..5a4577f 100644 --- a/src/audiocache.h +++ b/src/audiocache.h @@ -89,13 +89,13 @@ public: //! Set/get internal framesize used when iterating through cache buffers. void setFrameSize(size_t framesize); - size_t frameSize() const; + size_t getFrameSize() const; //! Control/get reader threaded mode. //! True means reading happening threaded, false means all reading done //! synchronious. void setAsyncMode(bool async); - bool asyncMode() const; + bool isAsyncMode() const; //! Return the number of chunks that were read too late. size_t getNumberOfUnderruns() const; -- cgit v1.2.3