change linux audio playback from cpal to pulse, because stupid cpal 100% cpu usage problem

This commit is contained in:
rustdesk
2022-04-23 02:17:33 +08:00
parent aa7779bcf7
commit 5bf8e8f001
4 changed files with 293 additions and 358 deletions

View File

@@ -429,8 +429,6 @@ async fn start_ipc(cm: ConnectionManager) {
async fn start_pa() {
use crate::audio_service::AUDIO_DATA_SIZE_U8;
use hbb_common::config::APP_NAME;
use libpulse_binding as pulse;
use libpulse_simple_binding as psimple;
match new_listener("_pa").await {
Ok(mut incoming) => {