winepulse: Remove unused pulse_config.

This commit is contained in:
Claire Girka 2022-07-04 13:44:03 +02:00 committed by Alexandre Julliard
parent 7a742c49e4
commit dee45f9bb7
3 changed files with 0 additions and 24 deletions

View file

@ -60,8 +60,6 @@ enum DriverPriority {
Priority_Preferred
};
static struct pulse_config pulse_config;
static HANDLE pulse_thread;
static struct list g_sessions = LIST_INIT(g_sessions);
static struct list g_devices_cache = LIST_INIT(g_devices_cache);
@ -492,7 +490,6 @@ int WINAPI AUDDRV_GetPriority(void)
char *name;
params.name = name = get_application_name(FALSE);
params.config = &pulse_config;
pulse_call(test_connect, &params);
free(name);
return SUCCEEDED(params.result) ? Priority_Preferred : Priority_Unavailable;

View file

@ -752,7 +752,6 @@ static void pulse_probe_settings(int render, const char *pulse_name, WAVEFORMATE
static NTSTATUS pulse_test_connect(void *args)
{
struct test_connect_params *params = args;
struct pulse_config *config = params->config;
PhysDevice *dev;
pa_operation *o;
int ret;
@ -835,13 +834,6 @@ static NTSTATUS pulse_test_connect(void *args)
pa_mainloop_free(pulse_ml);
pulse_ml = NULL;
config->modes[0].format = pulse_fmt[0];
config->modes[0].def_period = pulse_def_period[0];
config->modes[0].min_period = pulse_min_period[0];
config->modes[1].format = pulse_fmt[1];
config->modes[1].def_period = pulse_def_period[1];
config->modes[1].min_period = pulse_min_period[1];
pulse_unlock();
params->result = S_OK;
@ -2716,12 +2708,10 @@ static NTSTATUS pulse_wow64_test_connect(void *args)
{
PTR32 name;
HRESULT result;
PTR32 config;
} *params32 = args;
struct test_connect_params params =
{
.name = ULongToPtr(params32->name),
.config = ULongToPtr(params32->config), /* struct pulse_config is identical */
};
pulse_test_connect(&params);
params32->result = params.result;

View file

@ -29,16 +29,6 @@ enum phys_device_bus_type {
phys_device_bus_usb
};
struct pulse_config
{
struct
{
WAVEFORMATEXTENSIBLE format;
REFERENCE_TIME def_period;
REFERENCE_TIME min_period;
} modes[2];
};
struct endpoint
{
unsigned int name;
@ -218,7 +208,6 @@ struct test_connect_params
{
const char *name;
HRESULT result;
struct pulse_config *config;
};
struct is_started_params