zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit 9d322ce855859b048da78a6051d4ec93328bcd09
parent 8ffa3b3cf6804fda7eeb6af9c8c7330df218e0bd
Author: Hans Petter Selasky <hps@selasky.org>
Date:   Tue, 21 Dec 2021 20:36:57 +0100

Fix three compiler warnings.

Use correct keyword for class prototypes.

Signed-off-by: Hans Petter Selasky <hps@selasky.org>

Diffstat:
Msrc/Containers/NotePool.h | 2+-
Msrc/Synth/PADnote.cpp | 2+-
Msrc/Synth/SynthNote.h | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Containers/NotePool.h b/src/Containers/NotePool.h @@ -22,7 +22,7 @@ namespace zyn { typedef uint8_t note_t; //Global MIDI note definition struct LegatoParams; -struct PortamentoRealtime; +class PortamentoRealtime; class NotePool { public: diff --git a/src/Synth/PADnote.cpp b/src/Synth/PADnote.cpp @@ -43,7 +43,7 @@ PADnote::PADnote(const PADnoteParameters *parameters, } void PADnote::setup(float velocity_, - struct Portamento *portamento_, + Portamento *portamento_, float note_log2_freq_, bool legato, WatchManager *wm, diff --git a/src/Synth/SynthNote.h b/src/Synth/SynthNote.h @@ -20,7 +20,7 @@ namespace zyn { class Allocator; class Controller; -struct Portamento; +class Portamento; struct SynthParams { Allocator &memory; //Memory Allocator for the Note to use