Skip to content

Commit fb0ea08

Browse files
committed
fix: resolve CI compilation errors
- Fix ALSA method name: use set_periods() instead of set_periods_near() - Remove unused StreamConfigBuilder import from ALSA module
1 parent ca6bf41 commit fb0ea08

2 files changed

Lines changed: 1390 additions & 2 deletions

File tree

src/host/alsa/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use crate::{
1818
BackendSpecificError, BufferSize, BuildStreamError, ChannelCount, Data,
1919
DefaultStreamConfigError, DeviceNameError, DevicesError, FrameCount, InputCallbackInfo,
2020
OutputCallbackInfo, PauseStreamError, PlayStreamError, SampleFormat, SampleRate, StreamConfig,
21-
StreamConfigBuilder, StreamError, SupportedBufferSize, SupportedStreamConfig,
21+
StreamError, SupportedBufferSize, SupportedStreamConfig,
2222
SupportedStreamConfigRange, SupportedStreamConfigsError,
2323
};
2424

@@ -1303,7 +1303,7 @@ fn set_hw_params_from_format(
13031303

13041304
// Set periods if requested
13051305
if let Some(periods_count) = periods {
1306-
hw_params.set_periods_near(periods_count, alsa::ValueOr::Nearest)?;
1306+
hw_params.set_periods(periods_count, alsa::ValueOr::Nearest)?;
13071307
}
13081308

13091309
// Set buffer size if requested. ALSA will calculate the period size from this buffer size as:

0 commit comments

Comments
 (0)