Paul Davis
542c4b024e
Don't use errno after g_file_test on windows
2013-07-15 07:55:01 -04:00
Paul Davis
5131b8300f
Use g_open instead of ::open in PBD::FileManager
...
g_open is a macro that evaluates to ::open on linux(and mac) so this
is only a change for windows.
2013-07-15 07:54:29 -04:00
Paul Davis
db3edc4018
Use ::write instead of pwrite in AudioSource::compute_and_write_peaks for portability
...
This destroys the atomicity of pwrite() and thus suggests that we should do something else to ensure
that multithread access to peakfiles (if it does in fact exist) is safe. OTOH, there may be no
such thing, since they are designed for the GUI, which is single threaded (for now)
2013-07-15 07:53:45 -04:00
Paul Davis
13a0f14db7
Use ::read instead of pread in AudioSource::read_peaks for portability
...
This destroys the atomicity of pread() and thus suggests that we should do something else to ensure
that multithread access to peakfiles (if it does in fact exist) is safe. OTOH, there may be no
such thing, since they are designed for the GUI, which is single threaded (for now)
2013-07-15 07:52:37 -04:00
Paul Davis
0aac62e013
Merge branch 'master' into windows
2013-07-14 08:27:22 -04:00
Robin Gareus
2106a12edd
improve caching of metric and tick patters
...
* selectively clear cache (meterbridge, mixer)
* free memory of patterns on clear
2013-07-14 11:34:31 +02:00
Paul Davis
394f2b3ca7
Use boost::scoped_array in AudioSource::compute_and_write_peaks
2013-07-13 17:44:16 -04:00
Paul Davis
90c2a1c69d
Use boost::scoped_array in AudioSource::build_peaks_from_scratch
2013-07-13 17:43:36 -04:00
Paul Davis
ebdf73a077
Remove use of goto in AudioSource::read_peaks
2013-07-13 17:43:00 -04:00
Paul Davis
e5cc56a523
Use boost::scoped_array for controlling scope of peak data in AudioSource::read_peaks
2013-07-13 17:42:34 -04:00
Paul Davis
b84d032b3a
Use boost::scoped_array in AudioSource::read_peaks
2013-07-13 17:41:48 -04:00
Paul Davis
f754e1c0bb
Use boost::scoped_ptr to control scope of peakfile descriptor
2013-07-13 17:40:42 -04:00
Paul Davis
1bd570c276
Replace conditional peak debugging with DEBUG_TRACE macro usage
...
Also add some extra debugging info
2013-07-13 17:39:55 -04:00
Paul Davis
ac16da8ea6
Fix saving sessions on windows by using g_rename instead of ::rename
2013-07-13 17:33:30 -04:00
Paul Davis
868b06efd6
Revert "Fix saving sessions on windows by using g_rename instead of ::rename"
...
This reverts commit 2e2c22ad3c .
2013-07-13 17:10:11 -04:00
Paul Davis
2e2c22ad3c
Fix saving sessions on windows by using g_rename instead of ::rename
2013-07-13 17:01:47 -04:00
Paul Davis
e8ecd32732
Add test for Glib::Mutex::trylock
...
Behaviour of this method is different on WIN32
2013-07-13 17:00:18 -04:00
Paul Davis
6542ce76d0
Don't use trylock in assertions on windows as it will fail
...
glib uses TryEnterCriticalSection on windows which will return true
if the lock as able to be locked *or* is already locked by the current
thread.
2013-07-13 16:57:04 -04:00
Paul Davis
1fd2412f5b
Add config/data filesystem paths to search on windows
2013-07-13 16:56:12 -04:00
Paul Davis
ccdc6fcd6a
Add DEBUG_TRACE output to file utility functions in libpbd
2013-07-13 16:55:40 -04:00
Paul Davis
550eeecc63
Add header include required by mingw compiler
2013-07-13 16:44:59 -04:00
Paul Davis
48f8863b2c
Use g_mkstemp in audiographer for portability
2013-07-13 16:44:37 -04:00
Paul Davis
3be0f0aa0b
Use pthread_name instead of pthread_self for portability
2013-07-13 16:44:03 -04:00
Paul Davis
57066732ca
Use pthread_name instead of pthread_self for portability
2013-07-13 16:43:50 -04:00
Robin Gareus
cb9b1801ec
ignore mouse-scroll if scroll-bar is not present.
...
fixes http://tracker.ardour.org/view.php?id=5557
2013-07-13 14:58:23 +02:00
Paul Davis
40f49b85ac
Work around DELETE defined via windows.h
2013-07-13 08:45:27 -04:00
Paul Davis
ad89d1e031
Use custom comparator in threadmap for pthread impl with mingw
2013-07-13 08:44:58 -04:00
Paul Davis
18b5019385
disable pingback on win32, until we have a replacement for utsname stuff (system ID)
2013-07-13 08:38:17 -04:00
Paul Davis
9db936ac26
Don't call pango_ft2* functions on windows
2013-07-13 08:30:27 -04:00
Paul Davis
5dca8270eb
Use PBD::GlibSemaphore on windows to signal peak
2013-07-13 08:27:56 -04:00
Paul Davis
eddcc868ba
Disable non-realtime midi ports in windows build - THIS NEEDS FIXING
2013-07-13 08:26:54 -04:00
Paul Davis
a0ada1f233
Assume no filesystem links on windows
2013-07-13 08:20:45 -04:00
Paul Davis
745501b6f3
Fix for small identifier being defined on windows/mingw
2013-07-13 08:20:01 -04:00
Paul Davis
aa4dd3443f
Include pbd/timersub.h for mingw build
2013-07-13 08:19:32 -04:00
Paul Davis
ff825cd8bd
Include pbd/localtime_r.h for mingw build
2013-07-13 08:19:03 -04:00
Robin Gareus
5bae4373c7
implement visual-sensitivity (gray out) for faders
...
Note: bar-controller sensitivity state is not yet set if
automation-mode changes to/from play, but the widget now
supports that.
2013-07-12 19:07:07 +02:00
Robin Gareus
e0bbc0b435
minor peak-meter performance tweak
...
* redraw only missing parts of the outside rectangle,
* don't redraw RMS meter if value has not changed
2013-07-12 17:56:42 +02:00
Robin Gareus
2a0440a373
remove *&@?!+%@ question :)
...
I would like to record, edit and mix,...
..but I don't need software to hold my hand and ask
childish questions if I would like to "open a session".
2013-07-12 12:47:12 +02:00
Robin Gareus
da79e702e4
clean up plugin-ui meter layout
2013-07-12 12:11:26 +02:00
Paul Davis
e4ab2ffbfb
Don't install signal handler for SIGPIPE in windows
2013-07-11 22:34:59 -04:00
Paul Davis
f3858b1932
undef SearchPath where needed as it is defined via windows.h
2013-07-11 22:34:16 -04:00
Paul Davis
981e7e7fbb
Use Glib::usleep in export_dialog.cc for portability
2013-07-11 22:07:25 -04:00
Paul Davis
32320ec31d
Add windows equivalent of hack in timefx
2013-07-11 22:06:20 -04:00
Paul Davis
aa29b3b44c
Work around DELETE defined via windows.h
2013-07-11 22:05:06 -04:00
Paul Davis
c08b336292
Fix ambiguous type CheckMenuItem that is also defined via windows.h
2013-07-11 15:32:31 -04:00
Paul Davis
5cafb98983
Work around badly chosen argument name in giomm/dbusmessage.h
...
interface is defined in windows/mingw headers. hopefully this will
be fixed in giomm at some point and this crap can be removed
2013-07-11 15:29:28 -04:00
Paul Davis
01ed4f3388
undef SearchPath where needed as it is defined via windows.h
2013-07-11 15:24:36 -04:00
Paul Davis
167e8bbc2f
Include pbd/localtime_r.h for mingw build
2013-07-11 15:23:12 -04:00
Paul Davis
32f4d7787e
Change/improve enum as IN and OUT are defined via windows.h
2013-07-11 15:22:33 -04:00
Paul Davis
029c530203
Disable checking for memory locking support on windows
...
not sure if this is needed on windows, can implement later in PBD
2013-07-11 15:18:31 -04:00