mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 04:48:36 +00:00
winepulse: Don't set a floor for the period(s).
This driver, unlike the others, queries the engine for the actual device period. The default period floor is not needed anymore because it now lives in mmdevapi. The minimum period floor never mattered because exclusive mode is not supported.
This commit is contained in:
parent
86ac5f5638
commit
28818e6bd5
|
@ -113,9 +113,6 @@ 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 pthread_mutex_t pulse_mutex;
|
||||
static pthread_cond_t pulse_cond = PTHREAD_COND_INITIALIZER;
|
||||
|
||||
|
@ -750,12 +747,6 @@ static void pulse_probe_settings(int render, const char *pulse_name, WAVEFORMATE
|
|||
if (length)
|
||||
*def_period = *min_period = pa_bytes_to_usec(10 * length, &ss);
|
||||
|
||||
if (*min_period < MinimumPeriod)
|
||||
*min_period = MinimumPeriod;
|
||||
|
||||
if (*def_period < DefaultPeriod)
|
||||
*def_period = DefaultPeriod;
|
||||
|
||||
wfx->wFormatTag = WAVE_FORMAT_EXTENSIBLE;
|
||||
wfx->cbSize = sizeof(WAVEFORMATEXTENSIBLE) - sizeof(WAVEFORMATEX);
|
||||
|
||||
|
|
Loading…
Reference in a new issue