FR: Add volume and mute controls to Device

オープン
#551 コメント 25 件 リアクション 3 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
rust

調査の方向性

Start by reading the Device API and the platform-specific audio backends to see how volume and mute controls could be supported across input and output devices. The issue is stale, with 25 comments and the last comment 394 days ago; check the discussion for any decided approach before estimating the work. Done means exposing the requested mute and volume getters and setters for supported devices.

索引モデルが issue の本文から書いたものです。

説明

host-specific feature

I want to be able to use this library to control the volume and mute state of input and output Devices, ie:

let input_device = host.default_input_device().unwrap();
println!("microphone mute state: {}", input_device.get_mute());
input_device.set_mute(true);

let output_device = host.default_output_device().unwrap();
println!("output device volume: {} dB, {}%",
    output_device.get_volume_db(),
    output_device.get_volume_scalar() * 100);

// Set output volume to -10dB
output_device.set_volume_db(-10.);
// Set output volume to "scalar" 50% of maximum
output_device.set_volume_scalar(0.5);
主要言語
Rust
スター
4k
フォーク
554
平均マージ
3日 3時間
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

RustAudio/cpal のほかの issue

RustAudio/cpal の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。