13
0

Just some whitespace fixes from where it looks like I've been working

without my editor configured correctly and haven't noticed. Sorry about
that.


git-svn-id: svn://localhost/ardour2/trunk@849 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Tim Mayberry 2006-08-24 11:55:23 +00:00
parent 3bba45c773
commit 7e95f29ce9
2 changed files with 23 additions and 22 deletions

View File

@ -63,15 +63,15 @@ AudioEngine::AudioEngine (string client_name)
_buffer_size = 0;
_freewheeling = false;
_freewheel_thread_registered = false;
m_meter_thread = 0;
m_meter_exit = false;
if (connect_to_jack (client_name)) {
throw NoBackendAvailable ();
}
start_metering_thread();
m_meter_thread = 0;
m_meter_exit = false;
if (connect_to_jack (client_name)) {
throw NoBackendAvailable ();
}
start_metering_thread();
}
@ -207,7 +207,7 @@ AudioEngine::_xrun_callback (void *arg)
int
AudioEngine::_graph_order_callback (void *arg)
{
static_cast<AudioEngine *>(arg)->GraphReordered (); /* EMIT SIGNAL */
static_cast<AudioEngine *>(arg)->GraphReordered (); /* EMIT SIGNAL */
return 0;
}
@ -349,9 +349,9 @@ AudioEngine::jack_bufsize_callback (jack_nframes_t nframes)
void
AudioEngine::start_metering_thread ()
{
if(m_meter_thread == 0) {
m_meter_thread = Glib::Thread::create (sigc::mem_fun(this, &AudioEngine::meter_thread), false);
}
if(m_meter_thread == 0) {
m_meter_thread = Glib::Thread::create (sigc::mem_fun(this, &AudioEngine::meter_thread), false);
}
}
void

View File

@ -130,19 +130,20 @@ IO::IO (Session& s, string name,
_gain_automation_state = Off;
_gain_automation_style = Absolute;
{
// IO::Meter is emitted from another thread so the
// Meter signal must be protected.
Glib::Mutex::Lock guard (m_meter_signal_lock);
m_meter_connection = Meter.connect (mem_fun (*this, &IO::meter));
}
{
// IO::Meter is emitted from another thread so the
// Meter signal must be protected.
Glib::Mutex::Lock guard (m_meter_signal_lock);
m_meter_connection = Meter.connect (mem_fun (*this, &IO::meter));
}
}
IO::~IO ()
{
Glib::Mutex::Lock guard (m_meter_signal_lock);
Glib::Mutex::Lock guard (m_meter_signal_lock);
Glib::Mutex::Lock lm (io_lock);
vector<Port *>::iterator i;
@ -154,7 +155,7 @@ IO::~IO ()
_session.engine().unregister_port (*i);
}
m_meter_connection.disconnect();
m_meter_connection.disconnect();
}
void
@ -977,7 +978,7 @@ IO::disconnect_inputs (void* src)
drop_input_connection ();
}
}
input_changed (ConnectionsChanged, src); /* EMIT SIGNAL */
input_changed (ConnectionsChanged, src); /* EMIT SIGNAL */
return 0;
}