Skip to content

Commit

Permalink
update deps and rename to aud_lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico Chatzi committed Dec 27, 2023
1 parent 971e151 commit 82fce48
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 18 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ all = "deny"

[workspace.dependencies]
anyhow = "1.0.75"
thiserror = "1.0.48"
crossbeam = { version = "0.8.2", features = ["crossbeam-channel"] }
log = "0.4.20"
lazy_static = "1.4.0"
fern = "0.6.2"
notify = "6.1.1"
ratatui = "0.24.0"
ratatui = "0.25.0"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Scriptable MIDI Monitor.
Scriptable Audio Oscilloscope.

By default `auscope` lists the host machine's audio devices.
`aud_lib` can integrated in other applications (Rust or through C-FFI)
`audlib` can integrated in other applications (Rust or through C-FFI)
to generate sources and send them over UDP to an `auscope` instance.

![auscope](./vhs/out/auscope.gif)
Expand Down
3 changes: 1 addition & 2 deletions aud/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ path = "src/main.rs"
workspace = true

[dependencies]
aud = { package = "aud_lib", path = "../lib" }
aud = { package = "audlib", path = "../lib" }
anyhow = { workspace = true }
thiserror = { workspace = true }
crossbeam = { workspace = true }
log = { workspace = true }
fern = { workspace = true }
Expand Down
4 changes: 1 addition & 3 deletions aud/lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "aud_lib"
name = "audlib"
version = "0.1.0"
edition = "2021"

Expand All @@ -18,7 +18,6 @@ bench = []

[dependencies]
anyhow = { workspace = true }
thiserror = { workspace = true }
crossbeam = { workspace = true }
log = { workspace = true }
notify = { workspace = true }
Expand All @@ -32,7 +31,6 @@ crc32fast = "1.3.2"

[dev-dependencies]
fern = { workspace = true }
mockall = "0.11.4"
test-log = "0.2.12"
env_logger = "0.10.0"
criterion = "0.5.1"
Expand Down
2 changes: 1 addition & 1 deletion aud/lib/benches/audio_packet_sequence.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use aud_lib::comms::*;
use audlib::comms::*;
use criterion::{black_box, criterion_group, criterion_main, Criterion}; // replace `your_crate` with your actual crate name
use rand::Rng;

Expand Down
2 changes: 1 addition & 1 deletion aud/lib/benches/host_audio_io.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use aud_lib::audio::*;
use audlib::audio::*;
use criterion::{criterion_group, criterion_main, Criterion};
use rand::random;
use std::iter::repeat_with;
Expand Down
4 changes: 2 additions & 2 deletions aud/lib/examples/udp_audio_rx.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use aud_lib::audio::*;
use aud_lib::comms::*;
use audlib::audio::*;
use audlib::comms::*;
use std::net::UdpSocket;
use std::sync::Arc;
use std::sync::Mutex;
Expand Down
4 changes: 2 additions & 2 deletions aud/lib/examples/udp_audio_tx.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use aud_lib::audio::*;
use aud_lib::comms::*;
use audlib::audio::*;
use audlib::comms::*;
use std::net::UdpSocket;
use std::thread::sleep;
use std::time::Duration;
Expand Down
4 changes: 2 additions & 2 deletions aud/lib/src/audio/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl AudioBuffer {
/// # Examples
///
/// ```
/// use aud_lib::audio::AudioBuffer;
/// use audlib::audio::AudioBuffer;
///
/// let buffer = AudioBuffer::with_frames(10, 2);
/// assert_eq!(buffer.data.len(), 20); // 10 frames * 2 channels
Expand All @@ -102,7 +102,7 @@ impl AudioBuffer {
/// # Examples
///
/// ```
/// use aud_lib::audio::AudioBuffer;
/// use audlib::audio::AudioBuffer;
///
/// let buffer = AudioBuffer::with_length(20, 2);
/// assert_eq!(buffer.data.len(), 20); // Total number of samples
Expand Down
4 changes: 2 additions & 2 deletions aud/lib/src/dsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
///
/// # Examples
/// ```rust
/// use aud_lib::dsp::deinterleave;
/// use audlib::dsp::deinterleave;
///
/// let interleaved = [1.0, 2.0, 3.0, 4.0]; // Assuming 2 channels
/// let deinterleaved = deinterleave(&interleaved, 2);
Expand Down Expand Up @@ -45,7 +45,7 @@ pub fn deinterleave(buffer: &[f32], num_channels: usize) -> Vec<Vec<f32>> {
///
/// # Examples
/// ```rust
/// use aud_lib::dsp::interleave;
/// use audlib::dsp::interleave;
///
/// let interleaved_buffer = interleave(&[&[1.0, 3.0], &[2.0, 4.0]]);
/// assert_eq!(interleaved_buffer, &[1.0, 2.0, 3.0, 4.0]);
Expand Down

0 comments on commit 82fce48

Please sign in to comment.