Skip to content

Commit

Permalink
Update cpal
Browse files Browse the repository at this point in the history
  • Loading branch information
alisomay committed Oct 4, 2023
1 parent a0fd343 commit 81670fe
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ tempfile = "3.3.0"
embed-doc-image = "0.1.4"

[dev-dependencies]
cpal = "0.13"
cpal = "0.15.2"
sys-info = "0.9.1"
nannou = "0.18"
nannou_audio = "0.18"
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ Add the following dependencies to your `Cargo.toml`:

```toml
[dependencies]
libpd-rs = "0.1.9"
cpal = "0.13"
libpd-rs = "0.1"
cpal = "0.15"
```

Paste the code into your `main.rs`:
Expand Down Expand Up @@ -90,6 +90,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
// Here we could have done post processing after pd processed our output buffer in place.
},
|err| eprintln!("an error occurred on stream: {}", err),
None,
)?;

// Turn audio processing on
Expand Down
1 change: 1 addition & 0 deletions examples/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
// Here we could have done post processing after pd processed our output buffer in place.
},
|err| eprintln!("an error occurred on stream: {}", err),
None,
)?;

// Turn audio processing on
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ doc = ::embed_doc_image::embed_image!("phasor_patch", "assets/phasor_patch.png")
//! // after pd processed our output buffer in place.
//! },
//! |err| eprintln!("an error occurred on stream: {}", err),
//! None,
//! )?;
//!
//! // Turn audio processing on
Expand Down Expand Up @@ -339,6 +340,7 @@ doc = ::embed_doc_image::embed_image!("phasor_patch", "assets/phasor_patch.png")
//! // pd processed our output buffer in place.
//! },
//! |err| eprintln!("an error occurred on stream: {}", err),
//! None,
//! )?;
//!
//! // Turn audio processing on
Expand Down

0 comments on commit 81670fe

Please sign in to comment.