mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
[feat] audio capture supported on MacOSX
This commit is contained in:
@@ -370,8 +370,9 @@ int Render::StopScreenCapturer() {
|
||||
int Render::StartSpeakerCapturer() {
|
||||
if (!speaker_capturer_) {
|
||||
speaker_capturer_ = (SpeakerCapturer*)speaker_capturer_factory_->Create();
|
||||
int speaker_capturer_init_ret = speaker_capturer_->Init(
|
||||
[this](unsigned char* data, size_t size) -> void {
|
||||
int speaker_capturer_init_ret =
|
||||
speaker_capturer_->Init([this](unsigned char* data, size_t size,
|
||||
const char* audio_name) -> void {
|
||||
SendAudioFrame(peer_, (const char*)data, size, audio_label_.c_str());
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user