--- /dev/null
+https://bugs.gentoo.org/516964
+--- a/main.c
++++ b/main.c
+@@ -160,6 +160,17 @@ main (int argc, char *argv[])
+ aa_flush (context);
+ if (tolower (aa_getkey (context, 1)) != 'n')
+ {
++ /* Unfortunately recently added native pulseaudio
++ * driver in libmikmod does not allow you to
++ * call 'MikMod_Update' in a non-blocking way.
++ *
++ * It's a known limitation of simple pulseaudio API
++ * thus we derevisted pulseaudio driver to fallback
++ * on alsa, oss or whatever used to work for user.
++ */
++ drv_pulseaudio.Name = NULL;
++ drv_pulseaudio.Version = NULL;
++
+ MikMod_RegisterAllDrivers ();
+ MikMod_RegisterLoader (&load_s3m);
+ /*md_mode |= DMODE_SOFT_MUSIC; */
Summary(pl.UTF-8): BB - przenoĊne demo
Name: bb
Version: 1.3rc1
-Release: 10
+Release: 11
License: GPL
Group: Applications/Terminal
Source0: http://dl.sourceforge.net/aa-project/%{name}-%{version}.tar.gz
Patch0: %{name}-typos.patch
Patch1: %{name}-regparm.patch
Patch2: segv64.patch
-Patch3: pulse.patch
+Patch3: bb-1.3.0_rc1-disable-pulse.patch
URL: http://aa-project.sourceforge.net/bb/
BuildRequires: aalib-devel >= 1.4
BuildRequires: autoconf
+++ /dev/null
---- bb-1.3.0/timers.c.pulse 2017-06-30 21:37:27.711687696 +0200
-+++ bb-1.3.0/timers.c 2017-06-30 21:46:36.218568976 +0200
-@@ -483,14 +483,17 @@ tl_process_group (tl_group * group, int
- int time = timer->interval - tl_lookup_timer (timer);
- if (time <= 0)
- {
-+ int n;
- if (activated != NULL)
- (*activated)++;
- again = 1;
- tl_reset_timer (timer);
- if (time < -200 * 1000000)
- time = 0; /*underflow? */
-- tl_slowdown_timer (timer, time);
-- time = timer->interval + time;
-+ n = -(time) / timer->interval + 1;
-+ time += timer->interval * n;
-+
-+ tl_slowdown_timer (timer, time - timer->interval);
- timer->handler (timer->userdata);
- tl_update_time ();
- }