Commit graph

52 commits

Author SHA1 Message Date
GZharun
cb9f19baca [Summary] Backend Improvements
[Details] Fixed error handling
Fixed switching to None device when something goes wrong with the current device
Backend now takes care when device ID changes - Sound Grid does this when the amount of channel changes and it's not going to change in the neared future.
Fixed sample rate changes notification from device to DAW - Some devices can respond with such updates, we must correctly process them.
2015-02-12 11:39:25 +02:00
GZharun
8da1ad9fcf [Summary] Fixed issue when Audio Callback thread is changed
[Reviewed by] PDavis, VKamyshniy
2015-02-12 11:39:25 +02:00
Greg Zharun
f1171b79ce [Summary] Improved Port Audio event processing: Now redundant events will be filtered untill they are useful again 2015-02-10 23:43:50 +02:00
Greg Zharun
88810bc7be [Summary] Changed buffer sizes retrieving
[Details] There is no need to Initialize/Deinitialize PA and each time take buffers from the device. Buffer size will be assigned on device activation and application will be notified about buffer changes when it's required. This appears to be the correct workflow with buffer size on ASIO devices.
2015-02-10 23:43:48 +02:00
Greg Zharun
314236e1c6 [Summary] Fixed bug with per thread pool error on Windows, when opening device control panel 2015-02-03 12:32:56 +02:00
YPozdnyakov
bd1848dbf1 [Summary]: bug fix and small refactoring 2014-11-21 17:58:00 +02:00
Paul Davis
a4aa74a5ee add correct copyright statements to all files in Waves backend except those derived from portaudio/portmidi
This follows the letter sent from Waves Audio Ltd. to Paul Davis dated February 20th 2014 agreeing to release this code
under the GNU Public License, version 2, with copyright owned by Waves Audio Ltd
2014-10-07 16:09:29 -04:00
Greg Zharun
574e646e8c [Summary] Added small sleep pause after sample rate change on Windows to give port audio some time to process the change 2014-09-23 15:16:56 +03:00
Greg Zharun
7288316336 [Summary] Extended list of available sample rates on Windows 2014-09-23 13:13:31 +03:00
GZharun
7d5e2bc0cb [Summary] Extended list of supported sample rates on MAC and for None device according to PRD 2014-09-23 12:41:05 +03:00
Greg Zharun
3cc0c8d569 [Summary] Added handlers for events in Port Audio which where not handled. For all "Resynck Request", "Latency Changed" and "Buffer size Changed" events restart is required.
NOTE: Other devices, unlike Sound Grid, trigger "Restart Request" event for all above cases.
2014-09-11 11:12:19 +03:00
GZharun
ccc2f07fb3 [Summary] Corrected comment 2014-09-09 12:35:50 +03:00
Paul Davis
bd1cb0ce46 Revert "Add a couple of pthread helper macros"
This reverts commit 6dd4d411b3.

Conflicts:
	libs/pbd/MSVCpbd/pbd.vcproj
2014-09-08 10:41:51 -04:00
Paul Davis
c7af2444a7 Merge branch 'master' into ardour-merge
Conflicts:
	gtk2_ardour/time_axis_view_item.cc
	libs/backends/wavesaudio/waves_audiobackend.h
	libs/backends/wavesaudio/wavesapi/devicemanager/WCMRPortAudioDeviceManager.cpp
2014-09-02 10:28:52 -04:00
GZharun
bb54afa59f [Summary] Removed redundant output 2014-09-02 14:23:11 +03:00
Greg Zharun
6e204c337c [Summary] Cleaned up temporary code 2014-08-31 16:37:19 +03:00
Greg Zharun
91fcacd150 [Summary] Improved backend workflow, added synchronization for cases when device reset happens on device parameter change 2014-08-31 13:42:18 +03:00
Paul Davis
9c24d10862 Merge branch 'master' into ardour-merge
Conflicts:
	gtk2_ardour/editor.cc
	gtk2_ardour/editor_mouse.cc
	gtk2_ardour/public_editor.h
	gtk2_ardour/time_axis_view_item.cc
	gtk2_ardour/time_axis_view_item.h
2014-08-28 10:58:49 -04:00
GZharun
6009b609f6 [Summary] Simplified device information retrieving. Previous complicity was related to previous workflow which has nothing to do with current workflow. 2014-08-28 10:47:01 +03:00
Robin Gareus
f3b2c02749 fix type typo 2014-08-16 17:00:01 -04:00
John Emmas
cc944dd940 Add some more missing #includes 2014-08-16 16:34:48 -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
216d8d5a00 Add a couple of missing header files (needed for cin /cout etc) 2014-08-16 16:33:17 -04:00
Paul Davis
e39b66fb7c second part of windows/osx macro change - forgot *.cpp files 2014-08-16 16:29:13 -04:00
Paul Davis
12d5a33626 alter platform-dependent preprocessor macros to use the same names as the rest of the ardour codebase 2014-08-16 16:29:07 -04:00
Greg Zharun
b5c08b6984 [Summary] Improved Port audio Waves API on Windows
[Details] Fixed issue when device sample rate changed by device but not updated in client (tracks engine state controller)
Added PA stream opening retry attempts, because PA needs some time to apply changes and may not successfully open stream at once
2014-08-13 19:39:00 +03:00
GZharun
9c67a37f60 [Summary] Fixed issue with incorrect Mac OS string decoding on Maverics for device channel names 2014-07-30 16:25:29 +03:00
Greg Zharun
e20ca80c44 [Summary] Added channel name prefix according to PRD 2014-07-18 14:07:13 +03:00
GZharun
4e8c702e9a [Summary] Fixed Mavericks specific backend issue 2014-07-16 12:54:56 +03:00
GZharun
8c69a972b2 [Summary] Made Tracks buildable on MAC OS X 10.9 Maverricks.
[Details] Important: On Mavericks Tracks could be successfully built with static library linkage so far.
Use --internal-static-libs flag configuring the build.
[Reviewed by] Partially reviewed by Paul Davis. Some Improvements may be promoted in future.
2014-07-15 15:14:08 +03:00
Greg Zharun
e6f3b19674 [Summary] Corrected log in waves API on Windows 2014-07-09 11:24:41 +03:00
Greg Zharun
cfe2b3c17c [Summary] Fixed windows error with retrieving available sample rates from the device:
error code was not returned when eNoError value should be.
2014-07-08 13:00:32 +03:00
GZharun
0cf788ef12 [Summary] Added possibility to update sample rate list for devices on the fly on MAC 2014-07-08 12:27:20 +03:00
GZharun
daf365ced0 [Summary] Implemented Condition/Lock synchronization for Engine HW enevt handling 2014-07-03 17:12:51 +03:00
grygoriiz
489ead12ba [Summary] Added backend/engine update mechanism when device configuration changes (I/O layout, etc.)
[Reviewed by] The idea of event handling queue has been reviewed by Paul Davis
2014-07-02 13:46:53 +03:00
Greg Zharun
9cdb799f3b Implemented Tracks backend/engine reaction on device configuration changes (like I/O layout changes etc.) on Windows 2014-07-01 14:25:03 +03:00
grygoriiz
bf2dc8fdb8 [Summary] Used older version of CoreAudio API by Paul's suggestion to support MAC OS X version older then 10.8 2014-06-24 18:29:46 +03:00
Greg Zharun
301b9b13bf [Summary] Added PortAudio device channels names retrieving from the driver 2014-06-24 16:43:26 +03:00
grygoriiz
3493d2ccb3 Added Device channel names retrieving on MAC. 2014-06-23 11:59:59 +03:00
Nikolay Polyanovskii
2cf7eafb21 Improve handler of Device_Control_Panel button
[git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 467536]
2014-06-16 11:31:35 -04:00
Grygorii Zharun
f300eaba93 [Summary] Fixed MAC build
[Details] Added fixes to make the code cross platform compilable
[Reviewed by] N/A

[git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 446294]
2014-03-26 06:31:34 -05:00
Valeriy Kamyshniy
45d159fd77 [P4/git history rebuild] 2014-05-27 22:50:08 -04:00
Valeriy Kamyshniy
12228d251e [P4/git history rebuild] 2014-05-27 22:50:00 -04:00
Valeriy Kamyshniy
73d880fe47 [P4/git history rebuild] 2014-05-27 22:49:57 -04:00
Valeriy Kamyshniy
06629f8717 [P4/git history rebuild] 2014-05-27 22:49:53 -04:00
Valeriy Kamyshniy
11468006f6 [P4/git history rebuild] 2014-05-27 22:49:49 -04:00
Valeriy Kamyshniy
842f62d0b1 [P4/git history rebuild] 2014-05-27 22:49:44 -04:00
Valeriy Kamyshniy
7374dcf847 [P4/git history rebuild] 2014-05-27 22:49:41 -04:00
Valeriy Kamyshniy
29b94ed368 [P4/git history rebuild] 2014-05-27 22:49:38 -04:00