NO-OP: whitespace
This commit is contained in:
parent
787f5b2cc8
commit
5f0b15d446
@ -57,9 +57,9 @@ static bool keep_running = true;
|
|||||||
static bool terminate_when_halted = false;
|
static bool terminate_when_halted = false;
|
||||||
|
|
||||||
/* extern VST functions */
|
/* extern VST functions */
|
||||||
int vstfx_init (void*) { return 0; }
|
int vstfx_init (void*) { return 0; }
|
||||||
void vstfx_exit () {}
|
void vstfx_exit () { }
|
||||||
void vstfx_destroy_editor (VSTState*) {}
|
void vstfx_destroy_editor (VSTState*) { }
|
||||||
|
|
||||||
class LuaReceiver : public Receiver
|
class LuaReceiver : public Receiver
|
||||||
{
|
{
|
||||||
@ -109,7 +109,7 @@ public:
|
|||||||
run_loop_thread = Glib::Threads::Thread::self ();
|
run_loop_thread = Glib::Threads::Thread::self ();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool call_slot (InvalidationRecord* ir, const boost::function<void()>& f)
|
bool call_slot (InvalidationRecord* ir, const boost::function<void ()>& f)
|
||||||
{
|
{
|
||||||
if (Glib::Threads::Thread::self () == run_loop_thread) {
|
if (Glib::Threads::Thread::self () == run_loop_thread) {
|
||||||
cout << string_compose ("%1/%2 direct dispatch of call slot via functor @ %3, invalidation %4\n", event_loop_name (), pthread_name (), &f, ir);
|
cout << string_compose ("%1/%2 direct dispatch of call slot via functor @ %3, invalidation %4\n", event_loop_name (), pthread_name (), &f, ir);
|
||||||
@ -146,7 +146,8 @@ static void
|
|||||||
init ()
|
init ()
|
||||||
{
|
{
|
||||||
if (!ARDOUR::init (true, localedir)) {
|
if (!ARDOUR::init (true, localedir)) {
|
||||||
cerr << "Ardour failed to initialize\n" << endl;
|
cerr << "Ardour failed to initialize\n"
|
||||||
|
<< endl;
|
||||||
console_madness_end ();
|
console_madness_end ();
|
||||||
::exit (EXIT_FAILURE);
|
::exit (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
@ -449,7 +450,7 @@ setup_lua ()
|
|||||||
|
|
||||||
AudioEngine::instance ()->stop ();
|
AudioEngine::instance ()->stop ();
|
||||||
|
|
||||||
AudioEngine::instance()->Halted.connect_same_thread (engine_connections, boost::bind (&engine_halted, _1));
|
AudioEngine::instance ()->Halted.connect_same_thread (engine_connections, boost::bind (&engine_halted, _1));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
@ -542,6 +543,7 @@ usage ()
|
|||||||
{
|
{
|
||||||
printf ("ardour-lua - interactive Ardour Lua interpreter.\n\n");
|
printf ("ardour-lua - interactive Ardour Lua interpreter.\n\n");
|
||||||
printf ("Usage: ardour-lua [ OPTIONS ] [ file [args] ]\n\n");
|
printf ("Usage: ardour-lua [ OPTIONS ] [ file [args] ]\n\n");
|
||||||
|
/* clang-format off */
|
||||||
/* 1 2 3 4 5 6 7 8
|
/* 1 2 3 4 5 6 7 8
|
||||||
*2345678901234567890123456789012345678901234567890123456789012345678901234567890*/
|
*2345678901234567890123456789012345678901234567890123456789012345678901234567890*/
|
||||||
printf ("Options:\n\
|
printf ("Options:\n\
|
||||||
@ -555,6 +557,7 @@ usage ()
|
|||||||
printf ("\n\
|
printf ("\n\
|
||||||
Ardour at your finger tips...\n\
|
Ardour at your finger tips...\n\
|
||||||
\n");
|
\n");
|
||||||
|
/* clang-format on */
|
||||||
printf ("Report bugs to <https://tracker.ardour.org/>\n"
|
printf ("Report bugs to <https://tracker.ardour.org/>\n"
|
||||||
"Website: <https://ardour.org/>\n");
|
"Website: <https://ardour.org/>\n");
|
||||||
console_madness_end ();
|
console_madness_end ();
|
||||||
@ -566,12 +569,14 @@ main (int argc, char** argv)
|
|||||||
{
|
{
|
||||||
const char* optstring = "hiVX";
|
const char* optstring = "hiVX";
|
||||||
|
|
||||||
|
/* clang-format off */
|
||||||
const struct option longopts[] = {
|
const struct option longopts[] = {
|
||||||
{ "help", 0, 0, 'h' },
|
{ "help", 0, 0, 'h' },
|
||||||
{ "interactive", 0, 0, 'i' },
|
{ "interactive", 0, 0, 'i' },
|
||||||
{ "version", 0, 0, 'V' },
|
{ "version", 0, 0, 'V' },
|
||||||
{ "exit-when-halted", 0, 0, 'X' },
|
{ "exit-when-halted", 0, 0, 'X' },
|
||||||
};
|
};
|
||||||
|
/* clang-format on */
|
||||||
|
|
||||||
bool interactive = false;
|
bool interactive = false;
|
||||||
console_madness_begin ();
|
console_madness_begin ();
|
||||||
@ -612,7 +617,7 @@ main (int argc, char** argv)
|
|||||||
|
|
||||||
{
|
{
|
||||||
/* push arguments to script, use scoped LuaRef */
|
/* push arguments to script, use scoped LuaRef */
|
||||||
lua_State* L = lua->getState ();
|
lua_State* L = lua->getState ();
|
||||||
luabridge::LuaRef arg (luabridge::newTable (L));
|
luabridge::LuaRef arg (luabridge::newTable (L));
|
||||||
for (int i = 1; i < argc - optind; ++i) {
|
for (int i = 1; i < argc - optind; ++i) {
|
||||||
arg[i] = std::string (argv[i + optind]);
|
arg[i] = std::string (argv[i + optind]);
|
||||||
|
Loading…
Reference in New Issue
Block a user