2 * Copyright (C) 2014 Paul Davis <paul@linuxaudiosystems.com>
3 * Copyright (C) 2015 Robin Gareus <robin@gareus.org>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 TestReceiver::receive (Transmitter::Channel chn, const char * str)
28 const char *prefix = "";
31 case Transmitter::Error:
32 prefix = ": [ERROR]: ";
34 case Transmitter::Info:
37 case Transmitter::Warning:
38 prefix = ": [WARNING]: ";
40 case Transmitter::Fatal:
41 prefix = ": [FATAL]: ";
43 case Transmitter::Throw:
44 /* this isn't supposed to happen */
48 /* note: iostreams are already thread-safe: no external
52 std::cout << prefix << str << std::endl;
54 if (chn == Transmitter::Fatal) {
59 /* temporarily required due to some code design confusion (Feb 2014) */
61 #include "ardour/vst_types.h"
63 int vstfx_init (void*) { return 0; }
65 void vstfx_destroy_editor (VSTState*) {}