summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;