This commit is contained in:
rustdesk 2022-04-23 02:29:11 +08:00
parent 5bf8e8f001
commit ae74570ab8
2 changed files with 4 additions and 3 deletions

View File

@ -498,13 +498,14 @@ impl AudioHandler {
if !spec.is_valid() {
bail!("Invalid audio format");
}
use hbb_common::config::APP_NAME;
self.simple = Some(Simple::new(
None, // Use the default server
&crate::get_app_name(), // Our applications name
APP_NAME, // Our applications name
Direction::Playback, // We want a playback stream
None, // Use the default device
&crate::get_app_name(), // Description of our stream
"playback", // Description of our stream
&spec, // Our sample format
None, // Use default channel map
None, // Use default buffering attributes

View File

@ -465,7 +465,7 @@ async fn start_pa() {
APP_NAME, // Our applications name
pulse::stream::Direction::Record, // We want a record stream
Some(&device), // Use the default device
APP_NAME, // Description of our stream
"record", // Description of our stream
&spec, // Our sample format
None, // Use default channel map
None, // Use default buffering attributes