Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:X0F:HSF
wine
lowlatency_audio.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lowlatency_audio.patch of Package wine
diff --git a/dlls/winealsa.drv/alsa.c b/dlls/winealsa.drv/alsa.c index 94fc3c6..ba09b68 100644 --- a/dlls/winealsa.drv/alsa.c +++ b/dlls/winealsa.drv/alsa.c @@ -82,10 +82,10 @@ struct alsa_stream pthread_mutex_t lock; }; -#define EXTRA_SAFE_RT 40000 +#define EXTRA_SAFE_RT 4000 -static const REFERENCE_TIME def_period = 100000; -static const REFERENCE_TIME min_period = 50000; +static const REFERENCE_TIME def_period = 12000; +static const REFERENCE_TIME min_period = 8000; static const WCHAR drv_keyW[] = {'S','o','f','t','w','a','r','e','\\', 'W','i','n','e','\\','D','r','i','v','e','r','s','\\', @@ -2116,7 +2116,15 @@ static NTSTATUS alsa_get_mix_format(void *args) goto exit; } - if(max_rate >= 48000) + if(max_rate >= 192000) + fmt->Format.nSamplesPerSec = 192000; + else if(max_rate >= 176400) + fmt->Format.nSamplesPerSec = 176400; + else if(max_rate >= 96000) + fmt->Format.nSamplesPerSec = 96000; + else if(max_rate >= 88200) + fmt->Format.nSamplesPerSec = 88200; + else if(max_rate >= 48000) fmt->Format.nSamplesPerSec = 48000; else if(max_rate >= 44100) fmt->Format.nSamplesPerSec = 44100; diff --git a/dlls/winepulse.drv/pulse.c b/dlls/winepulse.drv/pulse.c index 4b06a23..afaf531 100644 --- a/dlls/winepulse.drv/pulse.c +++ b/dlls/winepulse.drv/pulse.c @@ -113,8 +113,8 @@ static pa_mainloop *pulse_ml; static struct list g_phys_speakers = LIST_INIT(g_phys_speakers); static struct list g_phys_sources = LIST_INIT(g_phys_sources); -static const REFERENCE_TIME MinimumPeriod = 30000; -static const REFERENCE_TIME DefaultPeriod = 100000; +static const REFERENCE_TIME MinimumPeriod = 12000; +static const REFERENCE_TIME DefaultPeriod = 24000; static pthread_mutex_t pulse_mutex; static pthread_cond_t pulse_cond = PTHREAD_COND_INITIALIZER;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor