[fix] macOS: fix audio capture, refs #29

This commit is contained in:
dijunkun
2025-11-30 17:13:02 +08:00
parent feb9f2f460
commit 91d42b6561
2 changed files with 48 additions and 2 deletions

View File

@@ -365,13 +365,16 @@ int Render::StartSpeakerCapturer() {
if (speaker_capturer_) {
speaker_capturer_->Start();
start_speaker_capturer_ = true;
}
return 0;
}
int Render::StopSpeakerCapturer() {
if (speaker_capturer_) {
speaker_capturer_->Stop();
start_speaker_capturer_ = false;
}
return 0;