Commit graph

17577 commits

Author SHA1 Message Date
Robin Gareus
a021da9a9d oops. 2015-07-29 03:34:27 +02:00
Robin Gareus
36f6aa9356 work-around OSX loadlocale thread safety.
This is not a real fix; just a stop-gap for the worst offender.

iostream on OSX is not thread safe.
Sadly no crash report so far managed to catch the 2nd thread in action.
looks like the GUI thread is preempted, 2nd thread succeeds, and the 
crash occurs later).

see also https://discussions.apple.com/thread/3479591

crash in
   s << c->internal_to_user (c->get_value ());

ardour-4.1.335(5000,0x7fff777f5300) malloc: *** error for object 0x7fe2f3e06170: pointer being freed was not allocated
1   libsystem_c.dylib       abort + 129
2   libsystem_malloc.dylib  free + 428
3   libsystem_c.dylib       __numeric_load_locale + 544
4   libsystem_c.dylib       loadlocale + 216
5   libstdc++.6.dylib       std::__convert_from_v(int* const&, char*, int, char const*, ...) + 193
6   libstdc++.6.dylib       std::ostreambuf_iterator<char, std::char_traits<char> > std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::_M_insert_float<double>(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, char, double) const + 193
7   libstdc++.6.dylib       std::ostream& std::ostream::_M_insert<double>(double) + 221
8   ardour-4.1.335          ProcessorEntry::Control::set_tooltip() + 854 (processor_box.cc:578)
9   ardour-4.1.335          ProcessorEntry::Control::control_changed() + 446 (processor_box.cc:637)
10  ibpbd.dylib             PBD::StandardTimer::on_elapsed()
2015-07-28 20:54:43 +02:00
Robin Gareus
64af6c880c Revert "debug/fix LV2 state loading on OSX 10.5/PPC"
This reverts commit 22bc62ed43.
forwarded upstream: http://dev.drobilla.net/ticket/1073
2015-07-28 18:58:17 +02:00
Robin Gareus
2a0365cbef don't crash if taglib cannot open file 2015-07-28 00:45:09 +02:00
Paul Davis
ab4263bff9 Merge branch 'ovenwerks-master' 2015-07-27 16:17:51 -04:00
Len Ovens
1a51f19493 Clean up extra white space added by editor. 2015-07-27 16:17:38 -04:00
Len Ovens
8b4a237ee3 Handle the 4 common encoder types. 2015-07-27 16:17:38 -04:00
Len Ovens
938f365cc1 Added MasterPosition value=0 to all mcp device files as this is saved and will not default 2015-07-27 16:17:38 -04:00
Len Ovens
d3b4ef4eed Add enc to midi map for mcp style encoders. 2015-07-27 16:17:38 -04:00
Len Ovens
ae3d4efce0 Make program change toggle or 1 only. 2015-07-27 16:17:38 -04:00
Len Ovens
6ab04a27c3 Allow any one midi event to control only one thing. 2015-07-27 16:17:38 -04:00
Robin Gareus
fee54fb155 fix LV2 freewheeling port, explicit cast bool to float.
http://lv2plug.in/ns/lv2core/#freeWheeling mentions "true"
and http://lv2plug.in/ns/lv2core/#toggled defines true as > 0.
false as <= 0.
2015-07-27 19:08:29 +02:00
Robin Gareus
22bc62ed43 debug/fix LV2 state loading on OSX 10.5/PPC 2015-07-27 17:11:52 +02:00
Paul Davis
c55b659f39 add Session::routes_solo_changed(), a plural method which makes changing many route solo states much faster.
Code originally by Grygorii Zharun in Tracks
2015-07-27 09:41:57 -04:00
Robin Gareus
949a45b748 fixes/updates for move to ::open() 2015-07-27 00:41:28 +02:00
Tim Mayberry
009a06a773 Move ARDOUR::touch_file to pbd/file_utils.h 2015-07-26 12:15:19 +10:00
Tim Mayberry
1a520b376f Use g_open instead of ::open in ARDOUR::touch_file for portability 2015-07-26 11:18:20 +10:00
Tim Mayberry
d91efa7f54 Use g_open and sf_open_fd in SndFileSource for portability 2015-07-25 23:14:52 +10:00
Tim Mayberry
ba14063463 Use g_open and sf_open_fd in SndFileImportable instead of sf_open and Glib::locale_from_utf8 2015-07-25 23:14:51 +10:00
Tim Mayberry
ecb4a76095 Use g_open instead of ::open in translation related utility functions
This is for portability on Windows
2015-07-25 23:14:51 +10:00
Tim Mayberry
544be3ebe8 Use g_open instead of ::open in AudioSource for portability
This is only really for Windows as g_open and ::open are the same thing on
other platforms
2015-07-25 23:14:51 +10:00
Tim Mayberry
e88f74cbb0 Use GStatBuf in AudioSource::initialize_peakfile for portability
This was initially part of f89a976f that got reverted
2015-07-25 23:14:51 +10:00
Tim Mayberry
0d356174ae Revert "When peakfiles get opened using a non-glib function (in a non-English locale) make sure that we pass locale-specific paths"
This reverts commit f89a976f1a.
2015-07-25 23:14:51 +10:00
Tim Mayberry
44cba53219 Revert "When saving a session (in a non-English locale) make sure that we use a locale-specific path"
This reverts commit cf5a8651d8.
2015-07-25 23:14:50 +10:00
Tim Mayberry
e3c303d72f Revert "A few more instances of non-glib 'open()' getting used without locale-specific input paths"
This reverts commit 52ef02b387.
2015-07-25 23:14:50 +10:00
Tim Mayberry
b2ff1e1734 Add unit test to check that libxml2 expects utf-8 encoded file paths on Windows 2015-07-25 23:14:50 +10:00
Tim Mayberry
226087d06a Only create one test output directory in file copy test
Rather than one directory for each file
2015-07-25 23:14:50 +10:00
Tim Mayberry
dfe2ac1d38 Add unit test to assert that using locale_from_utf8/::open will fail for some file paths on Windows 2015-07-25 23:14:45 +10:00
Tim Mayberry
545fd78a14 Remove sse optimization sources from test applications
These are already built and included in libardour
2015-07-25 17:19:17 +10:00
Robin Gareus
dcf7a407c1 tweak OSX packaging 2015-07-24 19:03:08 +02:00
Robin Gareus
6c87a43f0e VST info: use g_fopen() for Windows compat. 2015-07-24 18:05:08 +02:00
Robin Gareus
64baed2b97 coreaudio aggregate device fix for 10.5 2015-07-24 01:34:57 +02:00
John Emmas
52ef02b387 A few more instances of non-glib 'open()' getting used without locale-specific input paths
(noticed by Todd. probably more to come...)
2015-07-23 18:27:00 +01:00
John Emmas
a7508a9cf0 When printing an XML related error, guard against NULL pointers getting passed to our error stream 2015-07-23 17:55:14 +01:00
John Emmas
cf5a8651d8 When saving a session (in a non-English locale) make sure that we use a locale-specific path 2015-07-23 17:55:13 +01:00
John Emmas
f89a976f1a When peakfiles get opened using a non-glib function (in a non-English locale) make sure that we pass locale-specific paths 2015-07-23 17:55:13 +01:00
Robin Gareus
45c9f6b2ff don’t bother to set OSX DMG icon on old systems
`sips -i` fails on 10.5 and SetFile does not work even if
the resource file is provided.
2015-07-23 18:27:07 +02:00
Robin Gareus
e1f168de11 rename Marker class
Classes are in the global namespace.
OSX has a flat namespace and OSX32bit/Carbon has a Marker too.
2015-07-23 17:58:40 +02:00
Robin Gareus
2cc64168d3 signed/unsigned comparison 2015-07-23 16:15:51 +02:00
Robin Gareus
97de33d199 amend a73a039a3a, separate VST cache for 32/64bit 2015-07-23 16:15:26 +02:00
Robin Gareus
2524115992 avoid llabs ambiguity
(old gcc has a built-in)
2015-07-23 13:06:43 +02:00
Robin Gareus
723f9fb950 OSX: remove unused architectures from xjadeo & harvid 2015-07-23 00:04:41 +02:00
Robin Gareus
c0aa5a8d6b fix typo in old (pre 10.6) coreaudio API wrapper
fixes aggregate device support for PPC builds.
2015-07-22 20:20:11 +02:00
Robin Gareus
775a400007 amend a3c21ae, video-server localhost -> 127.0.0.1 2015-07-22 12:45:24 +02:00
Robin Gareus
506fb96ad7 amend 674e727 2015-07-22 12:09:59 +02:00
Robin Gareus
674e727121 OSX bundle libstdc++ for 10.5 support
see #6456 and
http://stackoverflow.com/questions/6365772/unable-to-run-an-application-compiled-on-os-x-snow-leopard-10-6-7-on-another-m

hopefully this won’t break plugins which may link against
against the /usr/lib/ version. we’ll see.
2015-07-22 11:50:26 +02:00
Robin Gareus
f7e10d0fe8 VST plugin title fix #6467 2015-07-21 21:49:34 +02:00
Robin Gareus
e2f30624a7 update system config 2015-07-21 01:12:39 +02:00
Robin Gareus
a3c21aee84 bye bye Unix.
An IPv4 or IPv6 address query for the name localhost must always resolve to the respective loopback address [rfc6761].

According to several users, apparently chromebook and OSX `host localhost` fails but configuring 127.0.0.1 works. (maybe a DNS/DHCP issue?! or ipv6)
2015-07-21 01:12:39 +02:00
Paul Davis
cdedf7f617 patches to fix notebook tab tearoff on DnD.
See also https://bugzilla.gnome.org/show_bug.cgi?id=752638 for updates
on integration into GTK+ 2 and GTK+ 3
2015-07-20 16:56:15 -04:00