summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Glöckner <cgloeckner@freenet.de>2016-03-29 10:50:36 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2016-03-31 17:35:47 +0200
commitc860412cddfb96004ded3bc0055c16308b5bc168 (patch)
tree84f55fd4bb8bf31a9d00e0df50f24a8ac09fefd6 /src
parent90cf32becc608fdd1a5e9bf815e040d7fb71b819 (diff)
made API of AudioCache's getters more consistent
Diffstat (limited to 'src')
-rw-r--r--src/audio.h5
-rw-r--r--src/audiocache.cc4
-rw-r--r--src/audiocache.h4
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 <audiotypes.h>
-
-#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;