Robin Gareus
8426bb3aaf
ALSA: explicitly list millisecond buffer-sizes
2021-01-22 16:07:33 +01:00
Robin Gareus
0b97175d49
ALSA: fall back to nearest available buffer-size
...
The warning "samples per period does not match." never triggered.
Previously not being able to set the requested buffersize was a
fatal error.
This adds support for soundcards that only support msec.
e.g. recent HDA Intel via SOF (Sound Open Firmware)
2021-01-22 16:07:29 +01:00
Robin Gareus
cff58bd9da
ALSA: Fix slave device lookup
2021-01-22 16:07:24 +01:00
Robin Gareus
c5b986f420
ALSA: set pretty port names for audio I/O
2021-01-18 03:18:21 +01:00
Robin Gareus
21e66216be
Separate user-set pretty-names from hardware I/O names
...
This allow to restore original engine port-names as set
by the backend. ALSA MIDI, CoreAudio, CoreMIDI and PortAudio
drivers can provide human readable physical port names for
some devices.
2021-01-18 03:18:20 +01:00
Robin Gareus
0c81ba33d2
JACK latency compensation for newly created tracks #8472
...
Ardour native backends trigger a latency-callback when ports_changed.
This was lost for JACK when the shared port engine was implemented.
2021-01-14 03:22:25 +01:00
Robin Gareus
5e76d63c06
Resolve some Xcode12 C++11, sigc++ issues
2020-12-12 04:46:22 +01:00
Robin Gareus
60901d26b7
ALSA: improve debug output
2020-12-03 21:29:21 +01:00
Robin Gareus
80e3c191e4
Pulseaudio: allow steam being suspended during export
...
When exporting long sessions with freewheeling, pulseaudio
may meanwhile suspend the corked audio device. The "FAIL_ON_SUSPEND"
option then prevents ardour to uncork it after export, and the
audio-backend is halted.
2020-11-22 21:41:47 +01:00
Robin Gareus
81862f8c30
Allow to move pulse stream #8467
...
This potentially breaks various assumptions (e.g. no resampling,
fixed buffersize) when the stream is moved to a different device.
Then again it's pulseaudio, which is unsuitable for pro-audio to
begin with.
2020-11-11 15:59:26 +01:00
Robin Gareus
bb468ee4de
Update jackd.exe registry key
...
This ensures compatibility with upcoming jack > 1.9.16,
current jack 1.9.16, as well as older versions.
2020-11-09 20:06:49 +01:00
Robin Gareus
c87ef15e82
ALSA: configure capture settings before playback
...
This fixes an issue with some soundcards e.g. "AxeFx III".
Device configuration fails unless set_hwpar() is performed
for the capture device before configuring the playack
device (half duplex is fine, too).
2020-11-04 14:46:49 +01:00
Robin Gareus
cf0904f752
Handle vfork/exec failure
...
Don't call atexit, exit without cleanup.
2020-10-31 22:33:10 +01:00
Robin Gareus
a9bd7b2848
Remove unused compile-time option to not use vfork
2020-10-31 22:30:45 +01:00
Robin Gareus
7896c30508
Fix cmdline parameter escape
2020-10-31 13:42:14 +01:00
John Emmas
40ed19767a
In a Windows build, support launching both older and newer versions of Jack (Stephane's + Filipe's)
2020-10-31 08:01:55 +00:00
John Emmas
5c06fdf1de
In an MSVC build, modify our VC project to use weak Jack
...
(needed to support Jack v1.9.16)
2020-10-31 07:59:09 +00:00
Robin Gareus
f7cc5e1f38
Search for JACK on windows using the registry
2020-10-24 04:01:54 +02:00
Robin Gareus
17f0b87648
Fix Apple Carbon #define interference
2020-10-11 21:40:31 +02:00
Robin Gareus
472ce90fab
JACK backend allows to calibrate latency
...
However, if jackd is running, we should test if jackd is using
a full-duplex device to establish if latency calibration is
possible -- fix 92f54b3e98 .
2020-09-20 17:16:01 +02:00
Robin Gareus
216935f16e
Remove ALSA debug message in optimized builds
2020-09-18 15:40:44 +02:00
Robin Gareus
802ddf344a
Remove unused mutex (amend a80064981e)
2020-09-06 05:43:03 +02:00
Robin Gareus
a80064981e
NO-OP: Consolidate PortConnect code into shared parent class
2020-09-05 23:05:57 +02:00
Robin Gareus
481cf37052
RT-safe jack transport time-master
...
Prefer a try-lock, instead of locking the tempo-map.
2020-08-19 19:07:41 +02:00
Stefan Westerfeld
ad8eb4d05b
Set JACK transport bar_start_tick field.
2020-08-19 19:04:11 +02:00
Robin Gareus
92f54b3e98
Add API to query if systemic latency can be measured
2020-06-30 03:34:26 +02:00
Robin Gareus
09aa0a3d1a
Consolidate code using pthread_attr_setstacksize
...
This also adds some stack constraint to rt and fallback threads
that didn't have those before (ALSA MIDI for example)
2020-06-06 18:35:44 +02:00
Robin Gareus
ae3c8b19c6
Tweak PulseAudio re-initialization
...
This fixes an issue with pulse disconnecting after freewheeling,
and possibly also address #8193
2020-06-05 04:24:09 +02:00
Robin Gareus
b46a7d43c2
Dummy Backend: add a MIDI Clock generator
2020-05-27 23:40:06 +02:00
Robin Gareus
feaf87d200
Dummy Backend: remove hardcoded MTC sequence
2020-05-12 01:49:45 +02:00
Robin Gareus
7c15ad099f
Dummy Backend: add a MTC generator
2020-05-12 01:49:41 +02:00
Robin Gareus
88fc77b4c0
Double dummy MTC sequence duration
2020-05-11 21:35:22 +02:00
Robin Gareus
4ff6fbe6b8
ALSA: Use same period for in+out #8075
...
Since the input is never flushed, capture latency is still
only one cycle.
2020-05-10 22:28:40 +02:00
Robin Gareus
abe23b5885
ALSA backend: ignore idempotent latency settings
2020-05-09 01:22:18 +02:00
Robin Gareus
c75b2355c1
Fix potential malloc(0) issue
2020-05-05 17:13:18 +02:00
Robin Gareus
27f26f5cfd
Cont'd work on ALSA nperiods (amend 2326fb163)
2020-05-03 00:19:56 +02:00
Robin Gareus
2326fb1638
ALSA: only read/clear user-requested nperiods before snd_pcm_start
...
This should fix excessive latency with the RayDay that
has a fixed buffersize of 16384 samples.
2020-05-01 23:17:31 +02:00
Robin Gareus
8fa0049d28
ALSA: set start threshold to zero
2020-04-30 04:16:17 +02:00
Robin Gareus
11f68a02cd
Another step towards nperiod fixes for the RayDay
2020-04-30 02:05:14 +02:00
Robin Gareus
3a6a9cfa6c
Tweak ALSA nperiod setting, fallback to nearest
...
This is mainly for RME RayDAT that has a fixed buffersize of 16k:
dev_name : hw:HDSPMxc2f6c5,0
channels : 36
min_rate : 32000
max_rate : 192000
min_bufz : 16384
max_bufz : 16384
min_nper : 4
max_nper : 512
However nperiod configuration determines the effective latency
regardless.
This is similar to https://github.com/jackaudio/jack1/blob/master/drivers/alsa/alsa_driver.c#L476-L486
2020-04-29 23:56:24 +02:00
Robin Gareus
47bb331bfa
Allow to refresh ALSA device list - #8051
2020-04-29 02:19:38 +02:00
Robin Gareus
8e482ef0fb
Con't work on ALSA nperiod selection (see also d3d120fa)
2020-04-28 17:56:17 +02:00
Robin Gareus
d3d120fa28
Prepare to allow using ALSA backend with nperiods > 3
...
This will still need an update for Alsa_pcmi::set_hwpar() capture
channel (which is fixed at 2, unless FRAG_NEAR is used).
2020-04-28 03:28:34 +02:00
Robin Gareus
13ed8da2bc
Add flag to allow ALSA backend to fall back to nearest avail. nperiods
2020-04-28 02:51:20 +02:00
Robin Gareus
3d166c7789
Consolidate stack-size and priority of rt-threads
2020-04-23 01:28:58 +02:00
Robin Gareus
daf9fe2550
Tweak engine startup, shorten initial silence timeout
...
see also 23baeee829
2020-04-16 16:47:08 +02:00
Paul Davis
1e996ca45f
add port connect/add/remove callbacks to CoreAudio backend
2020-04-10 10:01:04 -06:00
Paul Davis
2a80832243
add port connect/add/remove callbacks to the ALSA backend
...
This fixes issues with new ports not (always) appearing in port matrices (and presumably
elsewhere too)
2020-04-10 09:53:44 -06:00
Robin Gareus
b943cec756
ALSA: allow to select different I/O devices
...
This adds a basic support to use multiple sound-cards, currently
limited to two devices: In/Out with shared settings.
Advanced setups still have to resort to using the ARDOUR_ALSA_EXT
environment variable
2020-04-10 05:01:33 +02:00
Robin Gareus
e8efd45c05
Fix ALSA slave-device half-duplex mode
2020-04-10 05:01:30 +02:00