USB: Limit microphone lower latency to 1ms

This commit is contained in:
refractionpcsx2 2022-12-29 02:46:28 +00:00
parent 94d52d9ddb
commit 17b052430b
3 changed files with 5 additions and 5 deletions

View File

@ -1000,9 +1000,9 @@ namespace usb_mic
nullptr, nullptr, nullptr, nullptr, &AudioDevice::GetInputDeviceList},
{SettingInfo::Type::StringList, "output_device_name", "Output Device", "Selects the device to output audio to.", "", nullptr,
nullptr, nullptr, nullptr, nullptr, &AudioDevice::GetOutputDeviceList},
{SettingInfo::Type::Integer, "input_latency", "Input Latency", "Specifies the latency to the host input device.", AudioDevice::DEFAULT_LATENCY_STR, "0",
{SettingInfo::Type::Integer, "input_latency", "Input Latency", "Specifies the latency to the host input device.", AudioDevice::DEFAULT_LATENCY_STR, "1",
"1000", "1", "%dms", nullptr, nullptr, 1.0f},
{SettingInfo::Type::Integer, "output_latency", "Output Latency", "Specifies the latency to the host output device.", AudioDevice::DEFAULT_LATENCY_STR, "0",
{SettingInfo::Type::Integer, "output_latency", "Output Latency", "Specifies the latency to the host output device.", AudioDevice::DEFAULT_LATENCY_STR, "1",
"1000", "1", "%dms", nullptr, nullptr, 1.0f},
};
return info;

View File

@ -855,7 +855,7 @@ namespace usb_mic
{SettingInfo::Type::StringList, "player2_device_name", "Player 2 Device", "Selects the input for the second player.", "",
nullptr, nullptr, nullptr, nullptr, nullptr, &AudioDevice::GetInputDeviceList},
{SettingInfo::Type::Integer, "input_latency", "Input Latency", "Specifies the latency to the host input device.",
AudioDevice::DEFAULT_LATENCY_STR, "0", "1000", "1", "%dms", nullptr, nullptr, 1.0f},
AudioDevice::DEFAULT_LATENCY_STR, "1", "1000", "1", "%dms", nullptr, nullptr, 1.0f},
};
return info;
}
@ -876,7 +876,7 @@ namespace usb_mic
{SettingInfo::Type::StringList, "input_device_name", "Input Device", "Selects the device to read audio from.", "", nullptr,
nullptr, nullptr, nullptr, nullptr, &AudioDevice::GetInputDeviceList},
{SettingInfo::Type::Integer, "input_latency", "Input Latency", "Specifies the latency to the host input device.",
AudioDevice::DEFAULT_LATENCY_STR, "0", "1000", "1", "%dms", nullptr, nullptr, 1.0f},
AudioDevice::DEFAULT_LATENCY_STR, "1", "1000", "1", "%dms", nullptr, nullptr, 1.0f},
};
return info;
}

View File

@ -386,7 +386,7 @@ namespace usb_pad
{SettingInfo::Type::StringList, "input_device_name", "Input Device", "Selects the device to read audio from.", "", nullptr,
nullptr, nullptr, nullptr, nullptr, &AudioDevice::GetInputDeviceList},
{SettingInfo::Type::Integer, "input_latency", "Input Latency", "Specifies the latency to the host input device.",
AudioDevice::DEFAULT_LATENCY_STR, "0", "1000", "1", "%dms", nullptr, nullptr, 1.0f},
AudioDevice::DEFAULT_LATENCY_STR, "1", "1000", "1", "%dms", nullptr, nullptr, 1.0f},
};
return info;
}