Request 20 ms audio frames on Steam Link to reduce CPU overhead

This commit is contained in:
Cameron Gutman 2019-05-04 15:46:11 -07:00
commit bdbb03e16f
6 changed files with 12 additions and 46 deletions

View file

@ -260,7 +260,7 @@ bool SoundIoAudioRenderer::prepareForPlayback(const OPUS_MULTISTREAM_CONFIGURATI
m_RingBuffer = soundio_ring_buffer_create(m_SoundIo,
m_OutputStream->bytes_per_sample *
m_OpusChannelCount *
SAMPLES_PER_FRAME *
opusConfig->samplesPerFrame *
packetsToBuffer);
if (m_RingBuffer == nullptr) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,