[feat] audio capture supported on Linux

This commit is contained in:
kunkundi
2025-07-11 17:17:05 +08:00
parent c13e2613b6
commit 8fe8f4fd7e
6 changed files with 626 additions and 11 deletions

View File

@@ -509,7 +509,8 @@ int Render::CreateConnectionPeer() {
int Render::AudioDeviceInit() {
// Audio
SDL_AudioSpec want_in, want_out;
SDL_AudioSpec want_in = {};
SDL_AudioSpec want_out = {};
SDL_zero(want_in);
want_in.freq = 48000;
want_in.format = AUDIO_S16LSB;