summaryrefslogtreecommitdiff
path: root/synth/shared_object_manager.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@thinkpad.(none)>2011-01-16 18:18:39 +0100
committerFlorian Jung <flo@thinkpad.(none)>2011-01-16 18:30:53 +0100
commit12f20783b7ec8804825282fd04d9333ec83e31eb (patch)
treeaae39218ace9c7c12c14cf1246cd2485bf1323f1 /synth/shared_object_manager.cpp
parent527e7400f227703b9f0932b685f2bf7f2c2c005b (diff)
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
Diffstat (limited to 'synth/shared_object_manager.cpp')
-rw-r--r--synth/shared_object_manager.cpp6
1 files changed, 3 insertions, 3 deletions
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)
{