Fix source comment typos in `libs/ardour`
Found via `codespell`
This commit is contained in:
parent
a251ba3b76
commit
1e640563d6
|
@ -304,7 +304,7 @@ namespace ARDOUR { namespace LuaAPI {
|
||||||
*/
|
*/
|
||||||
int analyze (boost::shared_ptr<ARDOUR::AudioReadable> r, uint32_t channel, luabridge::LuaRef fn);
|
int analyze (boost::shared_ptr<ARDOUR::AudioReadable> r, uint32_t channel, luabridge::LuaRef fn);
|
||||||
|
|
||||||
/** call plugin():reset() and clear intialization flag */
|
/** call plugin():reset() and clear initialization flag */
|
||||||
void reset ();
|
void reset ();
|
||||||
|
|
||||||
/** initialize the plugin for use with analyze().
|
/** initialize the plugin for use with analyze().
|
||||||
|
|
|
@ -179,7 +179,7 @@ public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* returns true if the message with the second argument as its MIDI
|
* returns true if the message with the second argument as its MIDI
|
||||||
* status byte should preceed the message with the first argument as
|
* status byte should precede the message with the first argument as
|
||||||
* its MIDI status byte.
|
* its MIDI status byte.
|
||||||
*/
|
*/
|
||||||
static bool second_simultaneous_midi_byte_is_first (uint8_t, uint8_t);
|
static bool second_simultaneous_midi_byte_is_first (uint8_t, uint8_t);
|
||||||
|
|
|
@ -32,7 +32,7 @@ class Session;
|
||||||
class AsyncMIDIPort;
|
class AsyncMIDIPort;
|
||||||
|
|
||||||
/* this is mostly a placeholder because I suspect that at some
|
/* this is mostly a placeholder because I suspect that at some
|
||||||
point we will want to add more members to accomodate
|
point we will want to add more members to accommodate
|
||||||
certain types of requests to the MIDI UI
|
certain types of requests to the MIDI UI
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ AudioBuffer::AudioBuffer(size_t capacity)
|
||||||
if (capacity) {
|
if (capacity) {
|
||||||
_owns_data = true; // prevent resize() from gagging
|
_owns_data = true; // prevent resize() from gagging
|
||||||
resize (capacity);
|
resize (capacity);
|
||||||
_silent = false; // force silence on the intial buffer state
|
_silent = false; // force silence on the initial buffer state
|
||||||
clear ();
|
clear ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1847,7 +1847,7 @@ AUPlugin::parameter_is_control (uint32_t param) const
|
||||||
{
|
{
|
||||||
assert(param < descriptors.size());
|
assert(param < descriptors.size());
|
||||||
if (descriptors[param].automatable) {
|
if (descriptors[param].automatable) {
|
||||||
/* corrently ardour expects all controls to be automatable
|
/* currently ardour expects all controls to be automatable
|
||||||
* IOW ardour GUI elements mandate an Evoral::Parameter
|
* IOW ardour GUI elements mandate an Evoral::Parameter
|
||||||
* for all input+control ports.
|
* for all input+control ports.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -687,7 +687,7 @@ AudioEngine::do_reset_backend()
|
||||||
// backup the device name
|
// backup the device name
|
||||||
std::string name = _backend->device_name ();
|
std::string name = _backend->device_name ();
|
||||||
|
|
||||||
std::cout << "AudioEngine::RESET::Reseting device..." << std::endl;
|
std::cout << "AudioEngine::RESET::Resetting device..." << std::endl;
|
||||||
if ( ( 0 == stop () ) &&
|
if ( ( 0 == stop () ) &&
|
||||||
( 0 == _backend->reset_device () ) &&
|
( 0 == _backend->reset_device () ) &&
|
||||||
( 0 == start () ) ) {
|
( 0 == start () ) ) {
|
||||||
|
@ -1195,7 +1195,7 @@ AudioEngine::client_real_time_priority ()
|
||||||
/* this is only an issue with the Dummy backend.
|
/* this is only an issue with the Dummy backend.
|
||||||
* - with JACK, we require rt permissions.
|
* - with JACK, we require rt permissions.
|
||||||
* - with ALSA/Pulseaudio this can only happen if rt permissions
|
* - with ALSA/Pulseaudio this can only happen if rt permissions
|
||||||
* are n/a. Other atempts to get rt will fail likewise.
|
* are n/a. Other attempts to get rt will fail likewise.
|
||||||
*
|
*
|
||||||
* perhaps:
|
* perhaps:
|
||||||
* TODO: use is_realtime () ? PBD_SCHED_FIFO : PBD_SCHED_OTHER
|
* TODO: use is_realtime () ? PBD_SCHED_FIFO : PBD_SCHED_OTHER
|
||||||
|
|
|
@ -1626,7 +1626,7 @@ void
|
||||||
AudioRegion::source_offset_changed ()
|
AudioRegion::source_offset_changed ()
|
||||||
{
|
{
|
||||||
/* XXX this fixes a crash that should not occur. It does occur
|
/* XXX this fixes a crash that should not occur. It does occur
|
||||||
becauses regions are not being deleted when a session
|
because regions are not being deleted when a session
|
||||||
is unloaded. That bug must be fixed.
|
is unloaded. That bug must be fixed.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -960,7 +960,7 @@ AudioSource::compute_and_write_peaks (Sample* buf, samplecnt_t first_sample, sam
|
||||||
goto restart;
|
goto restart;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* else ... had leftovers, but they immediately preceed the new data, so just
|
/* else ... had leftovers, but they immediately precede the new data, so just
|
||||||
merge them and compute.
|
merge them and compute.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -380,7 +380,7 @@ AutomationList::serialize_events (bool need_lock) const
|
||||||
str << '\n';
|
str << '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
/* XML is a bit wierd */
|
/* XML is a bit weird */
|
||||||
|
|
||||||
XMLNode* content_node = new XMLNode (X_("foo")); /* it gets renamed by libxml when we set content */
|
XMLNode* content_node = new XMLNode (X_("foo")); /* it gets renamed by libxml when we set content */
|
||||||
content_node->set_content (str.str());
|
content_node->set_content (str.str());
|
||||||
|
|
|
@ -828,7 +828,7 @@ DiskReader::seek (samplepos_t sample, bool complete_refill)
|
||||||
/* There are two possible shortcuts we can take that will completely
|
/* There are two possible shortcuts we can take that will completely
|
||||||
* skip reading from disk. However, they are invalid if we need to read
|
* skip reading from disk. However, they are invalid if we need to read
|
||||||
* data in the opposite direction than we did last time, or if our need
|
* data in the opposite direction than we did last time, or if our need
|
||||||
* for looped data has chaned since the last read. Both of these change
|
* for looped data has changed since the last read. Both of these change
|
||||||
* the semantics of a read from disk, even if the position we are
|
* the semantics of a read from disk, even if the position we are
|
||||||
* reading from is the same.
|
* reading from is the same.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -608,7 +608,7 @@ ExportFormatManager::select_format (ExportFormatPtr const & format)
|
||||||
|
|
||||||
if (format) {
|
if (format) {
|
||||||
|
|
||||||
/* Slect right quality for format */
|
/* Select right quality for format */
|
||||||
|
|
||||||
ExportFormatBase::Quality quality = format->get_quality();
|
ExportFormatBase::Quality quality = format->get_quality();
|
||||||
for (QualityList::iterator it = qualities.begin (); it != qualities.end (); ++it) {
|
for (QualityList::iterator it = qualities.begin (); it != qualities.end (); ++it) {
|
||||||
|
|
|
@ -85,7 +85,7 @@ FluidSynth::load_sf2 (const std::string& fn)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* boostrap synth engine. The first call re-initializes the chorus
|
/* bootstrap synth engine. The first call re-initializes the chorus
|
||||||
* (fluid_rvoice_mixer_set_samplerate) which is not rt-safe.
|
* (fluid_rvoice_mixer_set_samplerate) which is not rt-safe.
|
||||||
*/
|
*/
|
||||||
float l[1024];
|
float l[1024];
|
||||||
|
|
|
@ -370,7 +370,7 @@ lotsa_files_please ()
|
||||||
error << string_compose (_("Could not get system open files limit (%1)"), strerror (errno)) << endmsg;
|
error << string_compose (_("Could not get system open files limit (%1)"), strerror (errno)) << endmsg;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
/* this only affects stdio. 2048 is the maxium possible (512 the default).
|
/* this only affects stdio. 2048 is the maximum possible (512 the default).
|
||||||
*
|
*
|
||||||
* If we want more, we'll have to replaces the POSIX I/O interfaces with
|
* If we want more, we'll have to replaces the POSIX I/O interfaces with
|
||||||
* Win32 API calls (CreateFile, WriteFile, etc) which allows for 16K.
|
* Win32 API calls (CreateFile, WriteFile, etc) which allows for 16K.
|
||||||
|
|
|
@ -597,7 +597,7 @@ Session::deinterlace_midi_region ( boost::shared_ptr<MidiRegion> mr )
|
||||||
}
|
}
|
||||||
|
|
||||||
// This function is still unable to cleanly update an existing source, even though
|
// This function is still unable to cleanly update an existing source, even though
|
||||||
// it is possible to set the ImportStatus flag accordingly. The functinality
|
// it is possible to set the ImportStatus flag accordingly. The functionality
|
||||||
// is disabled at the GUI until the Source implementations are able to provide
|
// is disabled at the GUI until the Source implementations are able to provide
|
||||||
// the necessary API.
|
// the necessary API.
|
||||||
void
|
void
|
||||||
|
|
|
@ -163,7 +163,7 @@ luabridge::getIdentityKey ()
|
||||||
|
|
||||||
/* ...and this is the ugly part of it.
|
/* ...and this is the ugly part of it.
|
||||||
*
|
*
|
||||||
* We need to foward declare classes from gtk2_ardour
|
* We need to forward declare classes from gtk2_ardour
|
||||||
* AND explicily list classes which are used by gtk2_ardour's bindings.
|
* AND explicily list classes which are used by gtk2_ardour's bindings.
|
||||||
*
|
*
|
||||||
* This is required because some of the GUI classes use objects from libardour
|
* This is required because some of the GUI classes use objects from libardour
|
||||||
|
@ -354,7 +354,7 @@ CLASSKEYS(LuaDialog::ProgressWindow);
|
||||||
|
|
||||||
/* Some notes on Lua bindings for libardour and friends
|
/* Some notes on Lua bindings for libardour and friends
|
||||||
*
|
*
|
||||||
* - Prefer factory methods over Contructors whenever possible.
|
* - Prefer factory methods over Constructors whenever possible.
|
||||||
* Don't expose the constructor method unless required.
|
* Don't expose the constructor method unless required.
|
||||||
*
|
*
|
||||||
* e.g. Don't allow the script to construct a "Track" Object directly
|
* e.g. Don't allow the script to construct a "Track" Object directly
|
||||||
|
@ -2046,7 +2046,7 @@ LuaBindings::common (lua_State* L)
|
||||||
|
|
||||||
.beginClass <DataType> ("DataType")
|
.beginClass <DataType> ("DataType")
|
||||||
.addConstructor <void (*) (std::string)> ()
|
.addConstructor <void (*) (std::string)> ()
|
||||||
.addStaticCFunction ("null", &LuaAPI::datatype_ctor_null) // "nil" is a lua reseved word
|
.addStaticCFunction ("null", &LuaAPI::datatype_ctor_null) // "nil" is a lua reserved word
|
||||||
.addStaticCFunction ("audio", &LuaAPI::datatype_ctor_audio)
|
.addStaticCFunction ("audio", &LuaAPI::datatype_ctor_audio)
|
||||||
.addStaticCFunction ("midi", &LuaAPI::datatype_ctor_midi)
|
.addStaticCFunction ("midi", &LuaAPI::datatype_ctor_midi)
|
||||||
.addFunction ("to_string", &DataType::to_string) // TODO Lua __tostring
|
.addFunction ("to_string", &DataType::to_string) // TODO Lua __tostring
|
||||||
|
@ -2937,7 +2937,7 @@ LuaBindings::dsp (lua_State* L)
|
||||||
.endClass ()
|
.endClass ()
|
||||||
.endNamespace ();
|
.endNamespace ();
|
||||||
|
|
||||||
// dsp releated session functions
|
// dsp related session functions
|
||||||
luabridge::getGlobalNamespace (L)
|
luabridge::getGlobalNamespace (L)
|
||||||
.beginNamespace ("ARDOUR")
|
.beginNamespace ("ARDOUR")
|
||||||
.beginClass <Session> ("Session")
|
.beginClass <Session> ("Session")
|
||||||
|
|
|
@ -71,7 +71,7 @@ LuaProc::LuaProc (AudioEngine& engine,
|
||||||
{
|
{
|
||||||
init ();
|
init ();
|
||||||
|
|
||||||
/* when loading a session, or pasing a processor,
|
/* when loading a session, or passing a processor,
|
||||||
* the script is set during set_state();
|
* the script is set during set_state();
|
||||||
*/
|
*/
|
||||||
if (!_script.empty () && load_script ()) {
|
if (!_script.empty () && load_script ()) {
|
||||||
|
|
|
@ -2208,7 +2208,7 @@ LV2Plugin::set_state(const XMLNode& node, int version)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Do not call latency_compute_run() concurrently with connect_and_run().
|
/* Do not call latency_compute_run() concurrently with connect_and_run().
|
||||||
* So far this can only guarnteed when the session is loading,
|
* So far this can only guaranteed when the session is loading,
|
||||||
* and the plugin has not been added to the processor chain.
|
* and the plugin has not been added to the processor chain.
|
||||||
*
|
*
|
||||||
* Ideally this would clso be called when copying a plugin from another track,
|
* Ideally this would clso be called when copying a plugin from another track,
|
||||||
|
|
|
@ -222,7 +222,7 @@ mac_vst_instantiate (VSTHandle* fhandle, audioMasterCallback amc, void* userptr)
|
||||||
|
|
||||||
void mac_vst_close (VSTState* mac_vst)
|
void mac_vst_close (VSTState* mac_vst)
|
||||||
{
|
{
|
||||||
// assert that the GUI object is destoyed
|
// assert that the GUI object is destroyed
|
||||||
|
|
||||||
if (mac_vst->plugin)
|
if (mac_vst->plugin)
|
||||||
{
|
{
|
||||||
|
|
|
@ -136,7 +136,7 @@ MidiPort::get_midi_buffer (pframes_t nframes)
|
||||||
*
|
*
|
||||||
* But of course ... if
|
* But of course ... if
|
||||||
* _global_port_buffer_offset is zero,
|
* _global_port_buffer_offset is zero,
|
||||||
* something wierd is happening.
|
* something weird is happening.
|
||||||
*/
|
*/
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
if (_global_port_buffer_offset == 0) {
|
if (_global_port_buffer_offset == 0) {
|
||||||
|
|
|
@ -91,7 +91,7 @@ MidiControlUI::midi_input_handler (IOCondition ioc, boost::weak_ptr<AsyncMIDIPor
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG_TRACE (DEBUG::MidiIO, string_compose ("something happend on %1\n", boost::shared_ptr<ARDOUR::Port> (port)->name()));
|
DEBUG_TRACE (DEBUG::MidiIO, string_compose ("something happened on %1\n", boost::shared_ptr<ARDOUR::Port> (port)->name()));
|
||||||
|
|
||||||
if (ioc & ~IO_IN) {
|
if (ioc & ~IO_IN) {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -785,7 +785,7 @@ Playlist::add_region_internal (boost::shared_ptr<Region> region, timepos_t const
|
||||||
region->DropReferences.connect_same_thread (region_drop_references_connections, boost::bind (&Playlist::region_going_away, this, boost::weak_ptr<Region> (region)));
|
region->DropReferences.connect_same_thread (region_drop_references_connections, boost::bind (&Playlist::region_going_away, this, boost::weak_ptr<Region> (region)));
|
||||||
|
|
||||||
/* do not handle property changes of newly added regions.
|
/* do not handle property changes of newly added regions.
|
||||||
* Otherwise this would triggger Playlist::notify_region_moved()
|
* Otherwise this would trigger Playlist::notify_region_moved()
|
||||||
* -> RangesMoved() and move automation.
|
* -> RangesMoved() and move automation.
|
||||||
*/
|
*/
|
||||||
region->clear_changes ();
|
region->clear_changes ();
|
||||||
|
@ -1673,7 +1673,7 @@ Playlist::region_changed (const PropertyChange& what_changed, boost::shared_ptr<
|
||||||
}
|
}
|
||||||
|
|
||||||
/* since cc6c0f1263ab272707b0241ec333776036515fc2 can no longer distinguish between
|
/* since cc6c0f1263ab272707b0241ec333776036515fc2 can no longer distinguish between
|
||||||
* position and length changes, so we have to assume that all have happpened :(
|
* position and length changes, so we have to assume that all have happened :(
|
||||||
*/
|
*/
|
||||||
if (what_changed.contains (Properties::length)) {
|
if (what_changed.contains (Properties::length)) {
|
||||||
notify_region_moved (region);
|
notify_region_moved (region);
|
||||||
|
@ -3194,7 +3194,7 @@ Playlist::uncombine (boost::shared_ptr<Region> target)
|
||||||
the original regions that we find, and add them
|
the original regions that we find, and add them
|
||||||
instead.
|
instead.
|
||||||
|
|
||||||
3) target region is a copy of a compount region previously
|
3) target region is a copy of a compound region previously
|
||||||
created. In this case we will also need to make copies ot each of
|
created. In this case we will also need to make copies ot each of
|
||||||
the original regions, and add them instead.
|
the original regions, and add them instead.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -81,7 +81,7 @@ Port::Port (std::string const & n, DataType t, PortFlags f)
|
||||||
cerr << "Failed to register port \"" << _name << "\", reason is unknown from here\n";
|
cerr << "Failed to register port \"" << _name << "\", reason is unknown from here\n";
|
||||||
throw failed_constructor ();
|
throw failed_constructor ();
|
||||||
}
|
}
|
||||||
DEBUG_TRACE (DEBUG::Ports, string_compose ("registed port %1 handle %2\n", name(), _port_handle));
|
DEBUG_TRACE (DEBUG::Ports, string_compose ("registered port %1 handle %2\n", name(), _port_handle));
|
||||||
|
|
||||||
PortDrop.connect_same_thread (drop_connection, boost::bind (&Port::session_global_drop, this));
|
PortDrop.connect_same_thread (drop_connection, boost::bind (&Port::session_global_drop, this));
|
||||||
PortSignalDrop.connect_same_thread (drop_connection, boost::bind (&Port::signal_drop, this));
|
PortSignalDrop.connect_same_thread (drop_connection, boost::bind (&Port::signal_drop, this));
|
||||||
|
@ -259,7 +259,7 @@ Port::connect (std::string const & other)
|
||||||
|
|
||||||
if (r == 0) {
|
if (r == 0) {
|
||||||
/* Connections can be saved on either or both sides. The code above works regardless
|
/* Connections can be saved on either or both sides. The code above works regardless
|
||||||
* from which end the conneciton is initiated, and connecting already connected ports
|
* from which end the connection is initiated, and connecting already connected ports
|
||||||
* is idempotent.
|
* is idempotent.
|
||||||
*
|
*
|
||||||
* Only saving internal connection on the source-side would be preferable,
|
* Only saving internal connection on the source-side would be preferable,
|
||||||
|
|
|
@ -982,7 +982,7 @@ PortManager::update_input_ports (bool clear)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (clear) {
|
if (clear) {
|
||||||
/* don't send notifcation for initial setup.
|
/* don't send notification for initial setup.
|
||||||
* Physical I/O is initially connected in
|
* Physical I/O is initially connected in
|
||||||
* reconnect_ports(), it is too early to
|
* reconnect_ports(), it is too early to
|
||||||
* do this when called from ::reestablish_ports()
|
* do this when called from ::reestablish_ports()
|
||||||
|
|
|
@ -174,4 +174,4 @@ PortSet::clear()
|
||||||
_all_ports.clear();
|
_all_ports.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namepace ARDOUR
|
} // namespace ARDOUR
|
||||||
|
|
|
@ -244,7 +244,7 @@ RBEffect::run (boost::shared_ptr<Region> r, Progress* progress)
|
||||||
stretcher.study (buffers, this_read, pos == read_duration);
|
stretcher.study (buffers, this_read, pos == read_duration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* done studing, start process */
|
/* done studying, start process */
|
||||||
pos = 0;
|
pos = 0;
|
||||||
|
|
||||||
while (pos < read_duration && !tsr.cancel) {
|
while (pos < read_duration && !tsr.cancel) {
|
||||||
|
|
|
@ -261,7 +261,7 @@ Route::init ()
|
||||||
}
|
}
|
||||||
|
|
||||||
_main_outs.reset (new Delivery (_session, _output, _pannable, _mute_master, _name, Delivery::Main));
|
_main_outs.reset (new Delivery (_session, _output, _pannable, _mute_master, _name, Delivery::Main));
|
||||||
/* master outut volume */
|
/* master output volume */
|
||||||
if (is_master()) {
|
if (is_master()) {
|
||||||
_volume_control.reset (new GainControl (_session, MainOutVolume));
|
_volume_control.reset (new GainControl (_session, MainOutVolume));
|
||||||
_volume_control->set_flag (Controllable::NotAutomatable);
|
_volume_control->set_flag (Controllable::NotAutomatable);
|
||||||
|
@ -413,11 +413,11 @@ Route::process_output_buffers (BufferSet& bufs,
|
||||||
end_sample += latency_offset;
|
end_sample += latency_offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Note: during intial pre-roll 'start_sample' as passed as argument can be negative.
|
/* Note: during initial pre-roll 'start_sample' as passed as argument can be negative.
|
||||||
* Functions calling process_output_buffers() will set "run_disk_reader"
|
* Functions calling process_output_buffers() will set "run_disk_reader"
|
||||||
* to false if the pre-roll count-down is larger than playback_latency ().
|
* to false if the pre-roll count-down is larger than playback_latency ().
|
||||||
*
|
*
|
||||||
* playback_latency() is guarnteed to be <= _signal_latency + _output->latency ()
|
* playback_latency() is guaranteed to be <= _signal_latency + _output->latency ()
|
||||||
*/
|
*/
|
||||||
assert (!_disk_reader || !run_disk_reader || start_sample >= 0 || speed < 0);
|
assert (!_disk_reader || !run_disk_reader || start_sample >= 0 || speed < 0);
|
||||||
|
|
||||||
|
@ -525,7 +525,7 @@ Route::process_output_buffers (BufferSet& bufs,
|
||||||
*
|
*
|
||||||
* cycle 1: run (t): automation (t) = on: -> increase latency
|
* cycle 1: run (t): automation (t) = on: -> increase latency
|
||||||
* cycle 2: run (t-latency): automation (t-latency) = off -> decrease latency
|
* cycle 2: run (t-latency): automation (t-latency) = off -> decrease latency
|
||||||
* reapeat.
|
* repeat.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ((*i)->active ()) {
|
if ((*i)->active ()) {
|
||||||
|
@ -3687,7 +3687,7 @@ Route::output_effectively_connected_real () const
|
||||||
return _connection_cache[rp];
|
return _connection_cache[rp];
|
||||||
}
|
}
|
||||||
/* First mark node a traversed to prevent endless recursion.
|
/* First mark node a traversed to prevent endless recursion.
|
||||||
* Othewise graph loops A -> B -> A will cause a stack overflow.
|
* Otherwise graph loops A -> B -> A will cause a stack overflow.
|
||||||
*/
|
*/
|
||||||
_connection_cache[rp] = false;
|
_connection_cache[rp] = false;
|
||||||
|
|
||||||
|
|
|
@ -556,7 +556,7 @@ RouteGroup::make_subgroup (bool aux, Placement placement)
|
||||||
/* use master bus etc. to determine default nouts.
|
/* use master bus etc. to determine default nouts.
|
||||||
*
|
*
|
||||||
* (since tracks can't have fewer outs than ins,
|
* (since tracks can't have fewer outs than ins,
|
||||||
* "nin" currently defines the number of outpus if nin > 2)
|
* "nin" currently defines the number of outputs if nin > 2)
|
||||||
*/
|
*/
|
||||||
rl = _session.new_audio_route (nin, 2, 0, 1, string(), PresentationInfo::AudioBus, PresentationInfo::max_order);
|
rl = _session.new_audio_route (nin, 2, 0, 1, string(), PresentationInfo::AudioBus, PresentationInfo::max_order);
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
|
|
|
@ -2671,7 +2671,7 @@ Session::ensure_route_presentation_info_gap (PresentationInfo::order_t first_new
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* create a gap in the presentation info to accomodate @param how_many
|
/* create a gap in the presentation info to accommodate @param how_many
|
||||||
* new objects.
|
* new objects.
|
||||||
*/
|
*/
|
||||||
StripableList sl;
|
StripableList sl;
|
||||||
|
@ -6909,7 +6909,7 @@ Session::update_latency (bool playback)
|
||||||
set_worst_output_latency ();
|
set_worst_output_latency ();
|
||||||
update_route_latency (true, /*apply_to_delayline*/ true, NULL);
|
update_route_latency (true, /*apply_to_delayline*/ true, NULL);
|
||||||
|
|
||||||
/* relese before emiting signals */
|
/* release before emitting signals */
|
||||||
lm.release ();
|
lm.release ();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
@ -7287,7 +7287,7 @@ Session::auto_connect (const AutoConnectRequest& ar)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!port.empty() && route->output()->connect (route->output()->ports().port(*t, i), port, this)) {
|
if (!port.empty() && route->output()->connect (route->output()->ports().port(*t, i), port, this)) {
|
||||||
DEBUG_TRACE (DEBUG::PortConnectAuto, "Failed to auto-connect ouput.");
|
DEBUG_TRACE (DEBUG::PortConnectAuto, "Failed to auto-connect output.");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -128,7 +128,7 @@ Session::process (pframes_t nframes)
|
||||||
*
|
*
|
||||||
* ideally this would be done in
|
* ideally this would be done in
|
||||||
* Route::process_output_buffers() but various functions
|
* Route::process_output_buffers() but various functions
|
||||||
* callig it hold a _processor_lock reader-lock
|
* calling it hold a _processor_lock reader-lock
|
||||||
*/
|
*/
|
||||||
bool one_or_more_routes_declicking = false;
|
bool one_or_more_routes_declicking = false;
|
||||||
{
|
{
|
||||||
|
@ -1351,7 +1351,7 @@ Session::plan_master_strategy (pframes_t nframes, double master_speed, samplepos
|
||||||
return desired;
|
return desired;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* When calling TransportMasterStart, sould aim for
|
/* When calling TransportMasterStart, should aim for
|
||||||
* delta >= _remaining_latency_preroll
|
* delta >= _remaining_latency_preroll
|
||||||
* This way there can be silent pre-roll of exactly the delta time.
|
* This way there can be silent pre-roll of exactly the delta time.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1629,7 +1629,7 @@ Session::set_state (const XMLNode& node, int version)
|
||||||
|
|
||||||
setup_raid_path(_session_dir->root_path());
|
setup_raid_path(_session_dir->root_path());
|
||||||
|
|
||||||
node.get_property (X_("end-is-free"), _session_range_is_free); //deprectated, but use old values if they are in the config
|
node.get_property (X_("end-is-free"), _session_range_is_free); //deprecated, but use old values if they are in the config
|
||||||
|
|
||||||
node.get_property (X_("session-range-is-free"), _session_range_is_free);
|
node.get_property (X_("session-range-is-free"), _session_range_is_free);
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ SndFileImportableSource::get_timecode_info (SNDFILE* sf, SF_BROADCAST_INFO* binf
|
||||||
}
|
}
|
||||||
|
|
||||||
exists = true;
|
exists = true;
|
||||||
/* libsndfile reads eactly 4 bytes for high and low, but
|
/* libsndfile reads exactly 4 bytes for high and low, but
|
||||||
* uses "unsigned int" which may or may not be 32 bit little
|
* uses "unsigned int" which may or may not be 32 bit little
|
||||||
* endian.
|
* endian.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -346,7 +346,7 @@ SndFileSource::open ()
|
||||||
// We really only want to use g_open for all platforms but because of this
|
// We really only want to use g_open for all platforms but because of this
|
||||||
// method(SndfileSource::open), the compiler(or at least GCC) is confused
|
// method(SndfileSource::open), the compiler(or at least GCC) is confused
|
||||||
// because g_open will expand to "open" on non-POSIX systems and needs the
|
// because g_open will expand to "open" on non-POSIX systems and needs the
|
||||||
// global namespace qualifer. The problem is since since C99 ::g_open will
|
// global namespace qualifier. The problem is since since C99 ::g_open will
|
||||||
// apparently expand to ":: open"
|
// apparently expand to ":: open"
|
||||||
#ifdef PLATFORM_WINDOWS
|
#ifdef PLATFORM_WINDOWS
|
||||||
int fd = g_open (_path.c_str(), writable() ? O_CREAT | O_RDWR : O_RDONLY, writable() ? 0644 : 0444);
|
int fd = g_open (_path.c_str(), writable() ? O_CREAT | O_RDWR : O_RDONLY, writable() ? 0644 : 0444);
|
||||||
|
|
|
@ -559,7 +559,7 @@ x86_sse_avx_compute_peak:
|
||||||
vshufps $0xb1, %ymm0, %ymm0, %ymm1 #; shuffle the floats inside pairs (1234 => 2143) in each 128 bit half
|
vshufps $0xb1, %ymm0, %ymm0, %ymm1 #; shuffle the floats inside pairs (1234 => 2143) in each 128 bit half
|
||||||
vmaxps %ymm1, %ymm0, %ymm0 #; maximums of the four pairs, we had up to 4 unique elements was unique, 2 unique elements left now
|
vmaxps %ymm1, %ymm0, %ymm0 #; maximums of the four pairs, we had up to 4 unique elements was unique, 2 unique elements left now
|
||||||
vperm2f128 $0x01, %ymm0, %ymm0, %ymm1 #; swap 128 bit halfs
|
vperm2f128 $0x01, %ymm0, %ymm0, %ymm1 #; swap 128 bit halfs
|
||||||
vmaxps %ymm1, %ymm0, %ymm0 #; the result will be - all 8 elemens are maximums
|
vmaxps %ymm1, %ymm0, %ymm0 #; the result will be - all 8 elements are maximums
|
||||||
|
|
||||||
#; now every float in %ymm0 is the same value, current maximum value
|
#; now every float in %ymm0 is the same value, current maximum value
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ x86_sse_mix_buffers_with_gain:
|
||||||
movl 12(%ebp), %esi #; src
|
movl 12(%ebp), %esi #; src
|
||||||
|
|
||||||
movl %edi, %eax
|
movl %edi, %eax
|
||||||
andl $12, %eax #; mask alignemnt offset
|
andl $12, %eax #; mask alignment offset
|
||||||
|
|
||||||
movl %esi, %ebx
|
movl %esi, %ebx
|
||||||
andl $12, %ebx #; mask alignment offset
|
andl $12, %ebx #; mask alignment offset
|
||||||
|
@ -186,7 +186,7 @@ x86_sse_mix_buffers_no_gain:
|
||||||
movl 12(%ebp), %esi #; src
|
movl 12(%ebp), %esi #; src
|
||||||
|
|
||||||
movl %edi, %eax
|
movl %edi, %eax
|
||||||
andl $12, %eax #; mask alignemnt offset
|
andl $12, %eax #; mask alignment offset
|
||||||
|
|
||||||
movl %esi, %ebx
|
movl %esi, %ebx
|
||||||
andl $12, %ebx #; mask alignment offset
|
andl $12, %ebx #; mask alignment offset
|
||||||
|
|
|
@ -45,7 +45,7 @@ x86_sse_find_peaks(const ARDOUR::Sample* buf, ARDOUR::pframes_t nframes, float *
|
||||||
// use 64 byte prefetch for quadruple quads
|
// use 64 byte prefetch for quadruple quads
|
||||||
while (nframes >= 16) {
|
while (nframes >= 16) {
|
||||||
#ifdef COMPILER_MSVC
|
#ifdef COMPILER_MSVC
|
||||||
_mm_prefetch(((char*)buf+64), 0); // A total guess! Assumed to be eqivalent to
|
_mm_prefetch(((char*)buf+64), 0); // A total guess! Assumed to be equivalent to
|
||||||
#else // the line below but waiting to be tested !!
|
#else // the line below but waiting to be tested !!
|
||||||
__builtin_prefetch(buf+64,0,0);
|
__builtin_prefetch(buf+64,0,0);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -349,7 +349,7 @@ TransportFSM::process_event (Event& ev, bool already_deferred, bool& deferred)
|
||||||
* This happens because we only need to do a
|
* This happens because we only need to do a
|
||||||
* realtime locate and continue rolling. No
|
* realtime locate and continue rolling. No
|
||||||
* disk I/O is required - the loop is
|
* disk I/O is required - the loop is
|
||||||
* automically present in buffers already.
|
* automatically present in buffers already.
|
||||||
*
|
*
|
||||||
* Note that ev.ltd is ignored and
|
* Note that ev.ltd is ignored and
|
||||||
* assumed to be true because we're looping.
|
* assumed to be true because we're looping.
|
||||||
|
|
|
@ -2513,7 +2513,7 @@ MIDITrigger::natural_length() const
|
||||||
void
|
void
|
||||||
MIDITrigger::estimate_midi_patches ()
|
MIDITrigger::estimate_midi_patches ()
|
||||||
{
|
{
|
||||||
/* first, intialize all our slot's patches to GM defaults, to make playback deterministic */
|
/* first, initialize all our slot's patches to GM defaults, to make playback deterministic */
|
||||||
for (uint8_t chan = 0; chan < 16; ++chan) {
|
for (uint8_t chan = 0; chan < 16; ++chan) {
|
||||||
_patch_change[chan].set_channel(chan);
|
_patch_change[chan].set_channel(chan);
|
||||||
_patch_change[chan].set_bank( chan == 9 ? 120 : 0 );
|
_patch_change[chan].set_bank( chan == 9 ? 120 : 0 );
|
||||||
|
@ -2737,7 +2737,7 @@ MIDITrigger::midi_run (BufferSet& bufs, samplepos_t start_sample, samplepos_t en
|
||||||
|
|
||||||
/* "final_beat" is an inclusive end of the trigger, not
|
/* "final_beat" is an inclusive end of the trigger, not
|
||||||
* exclusive, so we must use <= here. That is, any last event
|
* exclusive, so we must use <= here. That is, any last event
|
||||||
* (remeber, iter == model->end() here, so we have already read
|
* (remember, iter == model->end() here, so we have already read
|
||||||
* through the entire MIDI model) that is up to AND INCLUDING
|
* through the entire MIDI model) that is up to AND INCLUDING
|
||||||
* final_beat counts as "haven't reached the end".
|
* final_beat counts as "haven't reached the end".
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -328,7 +328,7 @@ ARDOUR::module_path_vst3 (string const& path)
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
/* Check for "Contents/MacOS/" and "Context/Info.plist".
|
/* Check for "Contents/MacOS/" and "Context/Info.plist".
|
||||||
* VST3MacModule calls CFBundleCreate() which handles Info.plist files.
|
* VST3MacModule calls CFBundleCreate() which handles Info.plist files.
|
||||||
* (on macOS/X the binrary name may differ from the bundle name)
|
* (on macOS/X the binary name may differ from the bundle name)
|
||||||
*/
|
*/
|
||||||
string plist = Glib::build_filename (path, "Contents", "Info.plist");
|
string plist = Glib::build_filename (path, "Contents", "Info.plist");
|
||||||
if (Glib::file_test (Glib::path_get_dirname (module_path), Glib::FILE_TEST_IS_DIR) &&
|
if (Glib::file_test (Glib::path_get_dirname (module_path), Glib::FILE_TEST_IS_DIR) &&
|
||||||
|
|
Loading…
Reference in New Issue