From 8e7ef0d42cff03f883033ff6e4793b2482eed049 Mon Sep 17 00:00:00 2001 From: Mads Kiilerich Date: Wed, 2 Nov 2022 12:27:33 +0100 Subject: [PATCH] PulseAudio: use correct casing This will also change the internal backend name, so it will miss the previous 'config' setting 'is_realtime ()) { /* this is only an issue with the Dummy backend. * - with JACK, we require rt permissions. - * - with ALSA/Pulseaudio this can only happen if rt permissions + * - with ALSA/PulseAudio this can only happen if rt permissions * are n/a. Other attempts to get rt will fail likewise. * * perhaps: diff --git a/libs/backends/pulseaudio/pulseaudio_backend.cc b/libs/backends/pulseaudio/pulseaudio_backend.cc index 27d21c4293..1921da4d68 100644 --- a/libs/backends/pulseaudio/pulseaudio_backend.cc +++ b/libs/backends/pulseaudio/pulseaudio_backend.cc @@ -70,7 +70,7 @@ PulseAudioBackend::~PulseAudioBackend () clear_ports (); } -/* Pulseaudio */ +/* PulseAudio */ void PulseAudioBackend::close_pulse (bool unlock) { @@ -334,7 +334,7 @@ PulseAudioBackend::init_pulse () std::string PulseAudioBackend::name () const { - return X_("Pulseaudio"); + return X_("PulseAudio"); } bool @@ -1151,7 +1151,7 @@ static bool already_configured (); static bool available (); static ARDOUR::AudioBackendInfo _descriptor = { - _("Pulseaudio"), + _("PulseAudio"), instantiate, deinstantiate, backend_factory, diff --git a/wscript b/wscript index 09f15d7d43..60b14f795e 100644 --- a/wscript +++ b/wscript @@ -1439,10 +1439,10 @@ int main () { __int128 x = 0; return 0; } conf.fatal("ALSA Backend is only available on Linux") if re.search ("linux", sys.platform) is None and conf.env['BUILD_PULSEAUDIO']: - conf.fatal("Pulseaudio Backend is only available on Linux") + conf.fatal("PulseAudio Backend is only available on Linux") if conf.env['BUILD_PULSEAUDIO'] and not conf.is_defined('HAVE_PULSEAUDIO'): - conf.fatal("Pulseaudio Backend requires libpulse-dev") + conf.fatal("PulseAudio Backend requires libpulse-dev") set_compiler_flags (conf, Options.options) @@ -1558,7 +1558,7 @@ const char* const ardour_config_info = "\\n\\ write_config_text('ALSA Backend', conf.env['BUILD_ALSABACKEND']) write_config_text('Dummy backend', conf.env['BUILD_DUMMYBACKEND']) write_config_text('JACK Backend', conf.env['BUILD_JACKBACKEND']) - write_config_text('Pulseaudio Backend', conf.env['BUILD_PULSEAUDIO']) + write_config_text('PulseAudio Backend', conf.env['BUILD_PULSEAUDIO']) config_text.write("\\n\\\n") write_config_text('Buildstack', conf.env['DEPSTACK_REV']) write_config_text('Mac i386 Architecture', opts.generic)