From 852b31481189d6ff9e490533a598ee5154a044f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gl=C3=B6ckner?= Date: Tue, 29 Mar 2016 17:30:15 +0200 Subject: Reformatted class PowerList --- src/powerlist.h | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) (limited to 'src/powerlist.h') diff --git a/src/powerlist.h b/src/powerlist.h index 1077d8c..a3af475 100644 --- a/src/powerlist.h +++ b/src/powerlist.h @@ -24,38 +24,37 @@ * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#ifndef __DRUMGIZMO_POWERLIST_H__ -#define __DRUMGIZMO_POWERLIST_H__ +#pragma once #include #include "sample.h" #include "random.h" -class PowerList { +class PowerList +{ public: - PowerList(); + PowerList(); - void add(Sample *s); - void finalise(); ///< Call this when no more samples will be added. + void add(Sample* s); + void finalise(); ///< Call this when no more samples will be added. - Sample *get(level_t velocity); + Sample* get(level_t velocity); private: - class PowerListItem { - public: - Sample *sample; - float power; - }; + class PowerListItem + { + public: + Sample* sample; + float power; + }; - Random rand; + Random rand; - std::vector samples; - float power_max; - float power_min; + std::vector samples; + float power_max; + float power_min; - Channel *getMasterChannel(); - Sample *lastsample; + Channel* getMasterChannel(); + Sample* lastsample; }; - -#endif/*__DRUMGIZMO_POWERLIST_H__*/ -- cgit v1.2.3