Puls der Zeit

Prototype a basic stereo-playback only pulseaudio backend.
This commit is contained in:
Robin Gareus 2019-07-25 16:39:23 +02:00
parent d70b03ae61
commit 384c97e12d
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
5 changed files with 2272 additions and 1 deletions

13
wscript
View file

@ -1044,6 +1044,9 @@ def configure(conf):
if re.search ("linux", sys.platform) != None and Options.options.dist_target != 'mingw':
autowaf.check_pkg(conf, 'alsa', uselib_store='ALSA')
if re.search ("linux", sys.platform) != None and Options.options.dist_target != 'mingw':
autowaf.check_pkg(conf, 'libpulse', uselib_store='PULSEAUDIO', atleast_version='10.0', mandatory=False)
if re.search ("openbsd", sys.platform) != None:
conf.env.append_value('LDFLAGS', '-L/usr/X11R6/lib')
@ -1229,6 +1232,7 @@ int main () { return 0; }
conf.env['BUILD_DUMMYBACKEND'] = any('dummy' in b for b in backends)
conf.env['BUILD_PABACKEND'] = any('portaudio' in b for b in backends)
conf.env['BUILD_CORECRAPPITA'] = any('coreaudio' in b for b in backends)
conf.env['BUILD_PULSEAUDIO'] = any('pulseaudio' in b for b in backends)
if re.search ("linux", sys.platform) != None and Options.options.dist_target != 'mingw' and conf.env['BUILD_PABACKEND']:
print("PortAudio Backend is not for Linux")
@ -1242,6 +1246,14 @@ int main () { return 0; }
print("ALSA Backend is only available on Linux")
sys.exit(1)
if re.search ("linux", sys.platform) == None and conf.env['BUILD_PULSEAUDIO']:
print("Pulseaudio Backend is only available on Linux")
sys.exit(1)
if conf.env['BUILD_PULSEAUDIO'] and not conf.is_defined('HAVE_PULSEAUDIO'):
print("Pulseaudio Backend requires libpulse-dev")
sys.exit(1)
set_compiler_flags (conf, Options.options)
if sys.platform == 'darwin':
@ -1327,6 +1339,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'])
config_text.write("\\n\\\n")
write_config_text('Buildstack', conf.env['DEPSTACK_REV'])
write_config_text('Mac i386 Architecture', opts.generic)