Move audio capabilities out of the renderer classes

Since the removal of libsoundio, all renderers support arbitrary audio duration, so we can avoid having to start an audio session just to query capabilities.
This commit is contained in:
Cameron Gutman committed 2025-10-25 19:17:38 -05:00
1 parent ac7696ea8f
commit 7d544c1ce4
6 files changed
+7 -30

No files matched your search

-5
View File
@@ -114,11 +114,6 @@ bool SLAudioRenderer::submitAudio(int bytesWritten)
return true;
}
int SLAudioRenderer::getCapabilities()
{
return CAPABILITY_SLOW_OPUS_DECODER | CAPABILITY_SUPPORTS_ARBITRARY_AUDIO_DURATION;
}
IAudioRenderer::AudioFormat SLAudioRenderer::getAudioBufferFormat()
{
return AudioFormat::Sint16NE;