Skip to content

Commit

Permalink
update flac-bound to 0.5.0
Browse files Browse the repository at this point in the history
Now FLAC can use the new `set_limit_min_bitrate()`to prevent connection loss when injecting/streaming digital silence .
  • Loading branch information
dheijl committed Nov 5, 2024
1 parent 8bfebc6 commit 85419c3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
- replace ```once_cell::sync::Lazy``` with ```std::sync::LazyLock```, so now swyh-rs requires Rustc version __1.80__ or later!!
- swyh-rs now is compiled with Rustc 1.82.0
- get rid of a couple of unwraps
- update flac-bound to 0.4.0 so that libflac-sys (0.3.1) and libflac (1.4.3) are now the latest versions
- update flac-bound to 0.5.0 so that
- libflac-sys (0.3.1) and libflac (1.4.3) are now the latest versions
- swyh-rs can use the new ```set_limit_min_bitrate()``` for the flac encoder to prevent connection loss when streaming/injecting silence.
This should enable the "inject silence" option to work for FLAC too!

- 1.11.6 (Sep 30 2024 dheijl)
- CLI: optimize player argument parsing (-o)
Expand Down
9 changes: 5 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ ctrlc = { version = "3.4.5", features = ["termination"] }
dasp_sample = "0.11.0"
dirs = "5.0.1"
fastrand = "2.1.1"
flac-bound = { version = "0.4.0", default-features = false, features = [
flac-bound = { version = "0.5.0", default-features = false, features = [
"libflac-noogg",
] }
hashbrown = "0.15.1"
Expand Down Expand Up @@ -86,5 +86,5 @@ libc = "0.2.161"
#fltk = { git = "https://github.com/fltk-rs/fltk-rs" }
#tiny_http = { git = "https://github.com/tiny-http/tiny-http" }
#cpal = { git = "https://github.com/RustAudio/cpal" }
flac-bound = { git = "https://github.com/dheijl/flac-bound" }
#flac-bound = { git = "https://github.com/dheijl/flac-bound" }
#flac-bound = { git = "https://github.com/nabijaczleweli/flac-bound" }
2 changes: 1 addition & 1 deletion src/utils/flacstream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl FlacChannel {
.bits_per_sample(bps)
.sample_rate(sr)
.compression_level(0)
.set_limit_min_bitrate(1)
.set_limit_min_bitrate(true)
.init_write(&mut outw)
.unwrap();
// read captured samples and encode
Expand Down

0 comments on commit 85419c3

Please sign in to comment.