diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-11-06 19:59:00 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-11-06 19:59:00 +0000 |
commit | e9604e2173532a72493f093bb3843ed24e4e0df5 (patch) | |
tree | c0daf5697e030b0f005930856b8745e4170c27e4 /libs/ardour/io.cc | |
parent | c860d925da575a9e233119c0e44fff64d130a62b (diff) |
better error message if VST SDK is not installed and neeed
git-svn-id: svn://localhost/ardour2/trunk@1080 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/io.cc')
-rw-r--r-- | libs/ardour/io.cc | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/libs/ardour/io.cc b/libs/ardour/io.cc index 897589fc77..77f3a33ff2 100644 --- a/libs/ardour/io.cc +++ b/libs/ardour/io.cc @@ -513,13 +513,21 @@ IO::deliver_output_no_pan (vector<Sample *>& bufs, uint32_t nbufs, nframes_t nfr dst = (*o)->get_buffer (nframes) + offset; src = bufs[min(nbufs,i)]; - if (dg != _gain || actual_gain == 1.0f) { - memcpy (dst, src, sizeof (Sample) * nframes); - } else if (actual_gain == 0.0f) { - memset (dst, 0, sizeof (Sample) * nframes); - } else { + if (_name == "Audio 2") { for (nframes_t x = 0; x < nframes; ++x) { - dst[x] = src[x] * actual_gain; + dst[x] = 0.7; + } + + } else { + + if (dg != _gain || actual_gain == 1.0f) { + memcpy (dst, src, sizeof (Sample) * nframes); + } else if (actual_gain == 0.0f) { + memset (dst, 0, sizeof (Sample) * nframes); + } else { + for (nframes_t x = 0; x < nframes; ++x) { + dst[x] = src[x] * actual_gain; + } } } |