Skip to content

Commit 93e7829

Browse files
authored
No need to override sample rate in speaker stream (#674)
1 parent b6ab707 commit 93e7829

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ brew install cmake
3838
# cidre uses this for audio capture and types
3939
xcode-select --install
4040
# Installing the tools
41+
xcodebuild -runFirstLaunch
42+
# Installing the tools
4143
npm install -g pnpm turbo
4244
```
4345

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ specta = "2.0.0-rc.21"
153153
specta-typescript = "0.0.9"
154154
tauri-specta = "2.0.0-rc.21"
155155

156-
cidre = { git = "https://github.com/yury/cidre", rev = "6af0cf7" }
156+
cidre = { git = "https://github.com/yury/cidre", rev = "4f0eff4" }
157157
cpal = "0.15.3"
158158
dasp = "0.11.0"
159159
hound = "3.5.1"

plugins/listener/src/fsm.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,9 @@ impl Session {
101101
let mut input = hypr_audio::AudioInput::from_mic();
102102
input.stream()
103103
};
104-
let mic_sample_rate = mic_sample_stream.sample_rate();
105104
let mut mic_stream = mic_sample_stream.resample(SAMPLE_RATE).chunks(1024);
106105

107-
let speaker_sample_stream =
108-
hypr_audio::AudioInput::from_speaker(Some(mic_sample_rate)).stream();
106+
let speaker_sample_stream = hypr_audio::AudioInput::from_speaker(None).stream();
109107
let mut speaker_stream = speaker_sample_stream.resample(SAMPLE_RATE).chunks(1024);
110108

111109
let chunk_buffer_size: usize = 1024;

0 commit comments

Comments
 (0)