Skip to content

Commit

Permalink
Downgrade cpal to PR/feature branch adding OpenBSD support
Browse files Browse the repository at this point in the history
Done with editing Cargo.toml followed by `cargo update -p cpal`,
which, sadly, change a whole bunch of other dependencies.

This makes audio play, but two issues remain:

1. Playback speed is noticably slow.
2. Toggling play -> shows this error, although playback is successfully
   paused:
   ```
   [2021-11-17T16:03:04Z ERROR psst_core::audio::output] failed to stop stream: A backend-specific error has occurred: pausing is not implemented
   ```
"Add support for OpenBSD platform via sndio host"
RustAudio/cpal#493 is based on an older cpal
release;  maybe rebasing on top of HEAD and therefore bringing in the
cpal changes that current psst already uses helps with/fixes any of the
two issues?
  • Loading branch information
klemensn committed Jan 9, 2022
1 parent add21f7 commit 1382e83
Show file tree
Hide file tree
Showing 2 changed files with 120 additions and 49 deletions.
167 changes: 118 additions & 49 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ opt-level = 2
piet = { git = "https://github.com/jpochyla/piet", branch = "ctfont-cache" }
piet-common = { git = "https://github.com/jpochyla/piet", branch = "ctfont-cache" }
piet-coregraphics = { git = "https://github.com/jpochyla/piet", branch = "ctfont-cache" }
# (not merged yet) solve panic at startup: "Add support for OpenBSD platform via sndio host" https://github.com/RustAudio/cpal/pull/493
cpal = { git = "https://github.com/conwayste/cpal", branch = "aaron/openbsd_sndio_host" }

0 comments on commit 1382e83

Please sign in to comment.