From 12f20783b7ec8804825282fd04d9333ec83e31eb Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Sun, 16 Jan 2011 18:18:39 +0100 Subject: Added waveforms and noise, changed foo++ into ++foo List of waveforms: 0=sin 1=abssin 2=half_sin 3=pulse-sin 4=square 5=sawtooth 6=pyramid 7=white noise --- synth/shared_object_manager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'synth/shared_object_manager.cpp') diff --git a/synth/shared_object_manager.cpp b/synth/shared_object_manager.cpp index 045f409..b9e2be7 100644 --- a/synth/shared_object_manager.cpp +++ b/synth/shared_object_manager.cpp @@ -31,7 +31,7 @@ void* my_dlopen(string file) output_verbose("the requested shared object '"+file+"' has been loaded with handle #"+IntToStr(int(handle))); } - dl_ref_count[handle]++; + ++dl_ref_count[handle]; return handle; } @@ -44,7 +44,7 @@ void dlref_inc(void* handle) if (dl_ref_count[handle]==0) throw string("dlref_inc: tried to increment the ref-count for a nonexistent handle"); - dl_ref_count[handle]++; + ++dl_ref_count[handle]; } void dlref_dec(void* handle) @@ -55,7 +55,7 @@ void dlref_dec(void* handle) if (dl_ref_count[handle]==0) throw string("dlref_inc: tried to decrement the ref-count for a nonexistent handle"); - dl_ref_count[handle]--; + --dl_ref_count[handle]; if (dl_ref_count[handle]==0) { -- cgit v1.2.3