[APU] Add apu_ prefix to max_queued_frames cvar
Also add note about the minimum value.
This commit is contained in:
parent
9333373872
commit
28c67b9384
|
@ -35,8 +35,8 @@
|
||||||
// implementations. They can be found in xboxkrnl_audio_xma.cc
|
// implementations. They can be found in xboxkrnl_audio_xma.cc
|
||||||
|
|
||||||
DEFINE_uint32(
|
DEFINE_uint32(
|
||||||
max_queued_frames, 64,
|
apu_max_queued_frames, 64,
|
||||||
"Allows changing max buffered audio frames to reduce audio delay.", "APU");
|
"Allows changing max buffered audio frames to reduce audio delay. Minimum is 16.", "APU");
|
||||||
|
|
||||||
namespace xe {
|
namespace xe {
|
||||||
namespace apu {
|
namespace apu {
|
||||||
|
@ -46,7 +46,7 @@ AudioSystem::AudioSystem(cpu::Processor* processor)
|
||||||
processor_(processor),
|
processor_(processor),
|
||||||
worker_running_(false) {
|
worker_running_(false) {
|
||||||
std::memset(clients_, 0, sizeof(clients_));
|
std::memset(clients_, 0, sizeof(clients_));
|
||||||
queued_frames_ = std::max(cvars::max_queued_frames, (uint32_t)16);
|
queued_frames_ = std::max(cvars::apu_max_queued_frames, (uint32_t)16);
|
||||||
|
|
||||||
for (size_t i = 0; i < kMaximumClientCount; ++i) {
|
for (size_t i = 0; i < kMaximumClientCount; ++i) {
|
||||||
client_semaphores_[i] = xe::threading::Semaphore::Create(0, queued_frames_);
|
client_semaphores_[i] = xe::threading::Semaphore::Create(0, queued_frames_);
|
||||||
|
|
Loading…
Reference in New Issue