Commit graph

13841 commits

Author SHA1 Message Date
Colin Fletcher
c35659c2ad SystemExec: copy last argument from command line to argv[]
Make sure to copy any part of the command line after the last delimiter
to argv[] when creating a SystemExec with an escaped command line.

Conflicts:
	libs/pbd/system_exec.cc
2014-08-16 16:51:15 -04:00
Robin Gareus
f28e54aceb partial fix for #5871 - midi-buffer size 2014-08-16 16:50:43 -04:00
Robin Gareus
ce8a679255 vst - fix effGetParameterProperties; label may be unset. 2014-08-16 16:50:38 -04:00
Robin Gareus
d85d05d574 vst-scanner app: properly init and use libpbd's Transmitter 2014-08-16 16:50:32 -04:00
Colin Fletcher
ccb7a99b17 Ripple mode: ripple all after start of deleted range
When deleting a range in ripple mode, ripple everything after the start
point of that range backwards by the length of the range, so that
newly-created regions immediately at the range end move back to the range
start.
2014-08-16 16:49:32 -04:00
Robin Gareus
7e9cc0caa7 more gettimeofday() -> g_get_monotonic_time() 2014-08-16 16:49:28 -04:00
Robin Gareus
c31c15eeaa and one more gettimeofday() transition (mackie timers) 2014-08-16 16:49:23 -04:00
Robin Gareus
69ca902e23 yet another gettimeofday() removal (glibmm idle) 2014-08-16 16:49:17 -04:00
Robin Gareus
6eaa121474 outline portable implementation to replace clock_gettime() 2014-08-16 16:49:11 -04:00
Robin Gareus
253fb8f4a6 replace gettimeofday() with g_get_monotonic_time() 2014-08-16 16:49:07 -04:00
Colin Fletcher
75817e1000 Don't clear the clipboard when deleting things
Deleting regions (or ranges, or anything) shouldn't affect the contents of
the clipboard - only CutCopyOp::Copy, CutCopyOp::Cut and CutCopyOp::Clear
should do that.
2014-08-16 16:49:03 -04:00
Colin Fletcher
9ae10442c3 Ripple mode: ripple when deleting ranges.
Make delete, cut and clear of a range ripple the appropriate playlists.
2014-08-16 16:48:56 -04:00
Robin Gareus
c9157e00d3 DummyAudioBackend: configurable number of MIDI ports 2014-08-16 16:46:48 -04:00
Robin Gareus
655f78fc65 DummyAudioBackend: prepare configurable number of midi ports 2014-08-16 16:46:43 -04:00
Robin Gareus
b48fb4b5c0 fix midi output on audio-tracks (e.g. audio->midi plugins) 2014-08-16 16:46:38 -04:00
Devin J. Pohly
b3faccc805 fix major/minor ticks on min:sec ruler
All ticks from 0:00.000 to 0:00.999... were major, and everything after
was minor, instead of the correct distribution.
2014-08-16 16:38:45 -04:00
Devin J. Pohly
90170ed4fb fix rounding error in the min:sec ruler
When zoomed in to the millisecond level, the framerate was being divided
by 1000 as an integer to generate a ruler tick interval, which doesn't
work so well at things like 44100 or 88200.  Instead, just count this
value in milliseconds, dividing by 1000 when we are done.

This was purely a display issue - the grid was in the correct place.
2014-08-16 16:38:35 -04:00
Devin J. Pohly
acb50a3db0 don't use llrint on already-integral variables
This could trick people into thinking that there is a floating-point
type hiding behind the typedef instead of an integer.
2014-08-16 16:38:28 -04:00
Devin J. Pohly
d14101b1b2 fix accumulated rounding error in BBT grid
Though current_frame is an integral type (framepos_t), it was being
added to as if it were floating-point, leading to an ever-increasing
rounding error when creating the grid for bars/beats/ticks.
2014-08-16 16:38:23 -04:00
Tim Mayberry
5e68dd5ee2 There will be no supported PPC build of Ardour3 so remove powerpc optimization section 2014-08-16 16:38:16 -04:00
Tim Mayberry
0d5ddc5c95 Remove Mac Universal build option as it is no longer supported 2014-08-16 16:38:10 -04:00
Tim Mayberry
a6ba28cfcc Use Glib::usleep in DummyAudioBackend rather than ::usleep 2014-08-16 16:38:04 -04:00
Tim Mayberry
41caadbe7c Remove incorrect code for mingw in DummyAudioBackend::in_process_thread
I'm assuming this section was copied from the JackAudioBackend where the
thread type is not pthread_t for mingw, but in the DummyAudioBackend it
is.
2014-08-16 16:37:57 -04:00
Tim Mayberry
f7b1d24045 Change windows packaging to have separate scripts for Fedora 19 and 20
A large part of the packaging is shared in package.sh, this approach should
work on windows with another dll list in package-waves.sh and redefined
copydll function(which I've added untested as copydll-waves.sh)

Also add support for 64bit mingw builds via ARCH env variable. If unset
defaults to 32bit build
2014-08-16 16:37:49 -04:00
Tim Mayberry
7debf24b8a Use COMPILER_MINGW define rather than __MINGW64__
This is necessary to build with win32 target using mingw-w64 version
on Fedora 19
2014-08-16 16:37:38 -04:00
Tim Mayberry
94759885e8 Reinstate code removed that allows building with mingw and the pthreads-win32 library
Newer versions of mingw-w64 can be built with an included pthread implementation
called winpthreads which uses an integer type for pthread_t but pthreads-win32 does
not.
2014-08-16 16:37:31 -04:00
Tim Mayberry
fcf068aeb0 Remove duplicate test for presence of boost header 2014-08-16 16:37:24 -04:00
Tim Mayberry
1b8703aa45 Always link to ole32 when building with mingw for get_win_special_folder
needed for CoTaskMemFree in get_win_special_folder
2014-08-16 16:37:20 -04:00
Tim Mayberry
9eeea76f22 Fix pattern to match possible audio backends on windows 2014-08-16 16:37:14 -04:00
Tim Mayberry
ef50b2818a Include windows.h for Sleep function 2014-08-16 16:37:00 -04:00
Tim Mayberry
8bea659f44 Use Glib::usleep in Editor::timefx_thread on Windows 2014-08-16 16:36:55 -04:00
Tim Mayberry
105d203427 Include windows.h for Registry access related API 2014-08-16 16:36:48 -04:00
Tim Mayberry
57ad9785f3 Fix collision between keyword interface used in glibmm and windows headers 2014-08-16 16:36:42 -04:00
John Emmas
074b1a21a3 Oops - minor spelling corrections 2014-08-16 16:36:38 -04:00
John Emmas
0a43a0fb6a Bug fix imported from Mixbus2 (SVN r11025)
Fix a crashing bug when trying to launch in a non-English locale (possibly only affects Windows)
2014-08-16 16:36:33 -04:00
John Emmas
76a4a06b1c Bug fix imported from Mixbus2 (SVN r11448)
If we couldn't figure out a plugin creator's name, either use as much of it as we could determine or mark the creator as 'Unknown'
2014-08-16 16:36:27 -04:00
Colin Fletcher
338ff210f9 Ripple mode: tidy up
Remove a load of debug output and dead code.
Move implementation of RegionRippleDrag::y_movement_allowed() out of
header into .cc file.
2014-08-16 16:36:08 -04:00
Colin Fletcher
80f04cc298 Ripple mode: basic implementation
Add a value for Ripple to EditMode enum.

Add Ripple edit mode to edit mode dropdown, by adding it to the
Editor::build_edit_mode_menu() helper function, and remove the old code that
added items to the (now unused) Editor::edit_mode_strings.

Add the regions that should be affected by the drag to RegionDrag::_views so
that the drag carries them along automatically.

Use a copy of the RegionList in Playlist::core_ripple(), since bad things
happen when iterating over regions and they get moved around in the list.

Handle rippling in removal of regions from playlist.

When dragging in ripple mode, exclude all regions that lie before the
original start position of the selected regions being dragged from
rippling: this is what Mixbus does.

Make editor dragging respect snap-to settings, by using the existing
compute_x_delta() function, which did almost the right thing. Move setting
of _last_frame_position out of that function so all ripple-dragged regions
can move.

Ripple when dragging from region list: even though Mixbus doesn't do this, it
seems like a good idea.

Prevent multi-track selection being dragged across tracks, by making
RegionMotionDrag::y_movement_allowed() virtual, and overriding it in
RegionRippleDrag to forbid dragging of selections containing regions on more
than one track to dofferent tracks in ripple mode.

Remember which TimeAxisView a ripple-mode drag that's allowed cross-track
drags started from, so that the effect of rippling regions after any region
that's dragged off that track can be undone.
2014-08-16 16:36:03 -04:00
Colin Fletcher
597b27a222 Splice mode: fix comment typo 2014-08-16 16:35:56 -04:00
Colin Fletcher
00b425b4ba Splice mode: exclude newly-added regions from being shuffled
When adding regions in splice mode, exclude the region being added from
possibly being shuffled. I don't know whether this might have some other
adverse effects, but it fixes an obvious defect in 'Splice' mode where
newly-recorded regions 'jump' to the playhead position when recording
stops, and since splice mode is pretty much broken anyway, I don't think it
can make matters any worse.
2014-08-16 16:35:50 -04:00
Colin Fletcher
a7af42716f Fix region content drag direction
Fix <Control>+drag in bottom of region to move the region contents in the
expected direction.
2014-08-16 16:35:40 -04:00
Colin Fletcher
fca8443d4b Fix undo of layer-changing region drags
Move clear_changes() of the playlist on which a region has been dragged
before calling set_layer() on that playlist, so that undo of region drags
in layered mode undoes any layer changes too.

Should fix #5904
2014-08-16 16:35:34 -04:00
Paul Davis
83a6d2a4dc shift-modifier during trim dragging causes region to jump to original position (anchored at start or end, depending on trim type) 2014-08-16 16:35:28 -04:00
Paul Davis
7e31e1399f first pass at tightening up waveform drawing algorithm to generally round down when dealing with fractional pixels 2014-08-16 16:35:21 -04:00
Robin Gareus
f7bc239132 provide plugins with all available buffers.
e.g. Audio in -> Midi out plugins (on an audio-track).
Midi-buffers do exist in the route but no corresponding
(physical) Input port-buffer exists and ardour crashed.

Now, the plugin itself still only accesses the mapped ports
(ChanMapping), but the mapped buffers are at most
"processor_max_streams" and at least the required
in+out buffers for the plugin.
2014-08-16 16:35:10 -04:00
John Emmas
cc944dd940 Add some more missing #includes 2014-08-16 16:34:48 -04:00
John Emmas
4c10034682 'atomic_ops' to use glib, rather than Waves's inbuilt atomic operations
Note that the following source files can be removed once we know this works on all platforms:-
backends/wavesaudio/wavesapi/akupara/threading/atomic_ops.hpp
backends/wavesaudio/wavesapi/akupara/threading/atomic_ops_gcc_x96.hpp
backends/wavesaudio/wavesapi/akupara/basics.hpp
backends/wavesaudio/wavesapi/akupara/compiletime_functions.hpp
2014-08-16 16:34:40 -04:00
John Emmas
e15ba3cd69 Add a return value to 'WCMRPortAudioDeviceManager::getDeviceAvailableSampleRates()'
(whilst technically, it doesn't report any encountered errors, it should nevertheless be returning some kind of error status)
2014-08-16 16:34:33 -04:00
John Emmas
6dd4d411b3 Add a couple of pthread helper macros
(to accommodate the fact that in ptw-win32, 'pthread_t' is subtlely different from its non-Windows counterparts)

Conflicts:
	libs/pbd/MSVCpbd/pbd.vcproj
2014-08-16 16:34:17 -04:00
John Emmas
cdf7ab795f Add 'waves_backend.vcproj' 2014-08-16 16:33:59 -04:00