summaryrefslogtreecommitdiff
path: root/libs/ardour/session_vst.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-10-14 16:10:01 +0000
committerDavid Robillard <d@drobilla.net>2009-10-14 16:10:01 +0000
commitbb9cc45cd22af67ac275a5e73accbe14fee664d8 (patch)
treee52977d3eae6ff07b856088041a080a2fa3e5b79 /libs/ardour/session_vst.cc
parent8c4ce1e2ce35571aed5a686671431fdfffae7f8c (diff)
Strip trailing whitespace and fix other whitespace errors (e.g. space/tab mixing). Whitespace changes only.
Vimmers, try let c_space_errors = 1 in your .vimrc to highlight this kind of stuff in red. I don't know the emacs equivalent... git-svn-id: svn://localhost/ardour2/branches/3.0@5773 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_vst.cc')
-rw-r--r--libs/ardour/session_vst.cc48
1 files changed, 24 insertions, 24 deletions
diff --git a/libs/ardour/session_vst.cc b/libs/ardour/session_vst.cc
index 3a158a3e73..7f13d3e18b 100644
--- a/libs/ardour/session_vst.cc
+++ b/libs/ardour/session_vst.cc
@@ -54,7 +54,7 @@ long Session::vst_callback (AEffect* effect,
if (debug_callbacks < 0) {
debug_callbacks = (getenv ("ARDOUR_DEBUG_VST_CALLBACKS") != 0);
}
-
+
if (effect && effect->user) {
plug = (VSTPlugin*) (effect->user);
session = &plug->session();
@@ -80,22 +80,22 @@ long Session::vst_callback (AEffect* effect,
// vst version, currently 2 (0 for older)
return 2;
- case audioMasterCurrentId:
+ case audioMasterCurrentId:
SHOW_CALLBACK ("amc: audioMasterCurrentId\n");
// returns the unique id of a plug that's currently
// loading
return 0;
-
+
case audioMasterIdle:
SHOW_CALLBACK ("amc: audioMasterIdle\n");
// call application idle routine (this will
- // call effEditIdle for all open editors too)
+ // call effEditIdle for all open editors too)
if (effect) {
effect->dispatcher(effect, effEditIdle, 0, 0, NULL, 0.0f);
}
return 0;
- case audioMasterPinConnected:
+ case audioMasterPinConnected:
SHOW_CALLBACK ("amc: audioMasterPinConnected\n");
// inquire if an input or output is beeing connected;
// index enumerates input or output counting from zero:
@@ -120,7 +120,7 @@ long Session::vst_callback (AEffect* effect,
_timeInfo.samplePos = session->transport_frame();
_timeInfo.sampleRate = session->frame_rate();
_timeInfo.flags = 0;
-
+
if (value & (kVstTempoValid)) {
const Tempo& t (session->tempo_map().tempo_at (session->transport_frame()));
_timeInfo.tempo = t.beats_per_minute ();
@@ -132,10 +132,10 @@ long Session::vst_callback (AEffect* effect,
_timeInfo.timeSigDenominator = m.note_divisor ();
_timeInfo.flags |= (kVstBarsValid);
}
-
+
if (session->transport_speed() != 0.0f) {
_timeInfo.flags |= kVstTransportPlaying;
- }
+ }
}
return (long)&_timeInfo;
@@ -164,7 +164,7 @@ long Session::vst_callback (AEffect* effect,
SHOW_CALLBACK ("amc: audioMasterGetNumAutomatableParameters\n");
return 0;
- case audioMasterGetParameterQuantization:
+ case audioMasterGetParameterQuantization:
SHOW_CALLBACK ("amc: audioMasterGetParameterQuantization\n");
// returns the integer value for +1.0 representation,
// or 1 if full single float precision is maintained
@@ -234,7 +234,7 @@ long Session::vst_callback (AEffect* effect,
// 4: currently offline processing and thus in user thread
// other: not defined, but probably pre-empting user thread.
return 0;
-
+
case audioMasterGetAutomationState:
SHOW_CALLBACK ("amc: audioMasterGetAutomationState\n");
// returns 0: not supported, 1: off, 2:read, 3:write, 4:read/write
@@ -285,42 +285,42 @@ long Session::vst_callback (AEffect* effect,
SHOW_CALLBACK ("amc: audioMasterGetVendorVersion\n");
// returns vendor-specific version
return 900;
-
+
case audioMasterVendorSpecific:
SHOW_CALLBACK ("amc: audioMasterVendorSpecific\n");
// no definition, vendor specific handling
return 0;
-
+
case audioMasterSetIcon:
SHOW_CALLBACK ("amc: audioMasterSetIcon\n");
// void* in <ptr>, format not defined yet
return 0;
-
+
case audioMasterCanDo:
SHOW_CALLBACK ("amc: audioMasterCanDo\n");
// string in ptr, see below
return 0;
-
+
case audioMasterGetLanguage:
SHOW_CALLBACK ("amc: audioMasterGetLanguage\n");
// see enum
return 0;
-
+
case audioMasterOpenWindow:
SHOW_CALLBACK ("amc: audioMasterOpenWindow\n");
// returns platform specific ptr
return 0;
-
+
case audioMasterCloseWindow:
SHOW_CALLBACK ("amc: audioMasterCloseWindow\n");
// close window, platform specific handle in <ptr>
return 0;
-
+
case audioMasterGetDirectory:
SHOW_CALLBACK ("amc: audioMasterGetDirectory\n");
// get plug directory, FSSpec on MAC, else char*
return 0;
-
+
case audioMasterUpdateDisplay:
SHOW_CALLBACK ("amc: audioMasterUpdateDisplay\n");
// something has changed, update 'multi-fx' display
@@ -328,27 +328,27 @@ long Session::vst_callback (AEffect* effect,
effect->dispatcher(effect, effEditIdle, 0, 0, NULL, 0.0f);
}
return 0;
-
+
case audioMasterBeginEdit:
SHOW_CALLBACK ("amc: audioMasterBeginEdit\n");
// begin of automation session (when mouse down), parameter index in <index>
return 0;
-
+
case audioMasterEndEdit:
SHOW_CALLBACK ("amc: audioMasterEndEdit\n");
// end of automation session (when mouse up), parameter index in <index>
return 0;
-
+
case audioMasterOpenFileSelector:
SHOW_CALLBACK ("amc: audioMasterOpenFileSelector\n");
// open a fileselector window with VstFileSelect* in <ptr>
return 0;
-
+
default:
SHOW_CALLBACK ("VST master dispatcher: undefed: %d\n", opcode);
break;
- }
-
+ }
+
return 0;
}