Skip to content

Commit

Permalink
fix ci, unlicense, update deps, bump semver
Browse files Browse the repository at this point in the history
  • Loading branch information
zeozeozeo committed Jan 29, 2025
1 parent f16d3f9 commit 31e8522
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 29 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,3 @@ jobs:
run: cargo test --all-features --verbose
- name: Rustfmt
run: cargo fmt --all -- --check
- name: Install cargo-cranky
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-cranky
- name: Cranky
run: cargo cranky --all-targets --all-features -- -D warnings
14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "kittyaudio"
description = "An audio playback library focusing on simplicity"
license = "MIT OR BSL-1.0"
version = "0.1.9"
license = "Unlicense OR MIT OR BSL-1.0"
version = "0.2.0"
exclude = ["assets/**"]
documentation = "https://docs.rs/kittyaudio"
homepage = "https://github.com/zeozeozeo/kittyaudio"
Expand All @@ -15,11 +15,11 @@ readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
cpal = { version = "0.15.2", optional = true }
parking_lot = "0.12.1"
serde = { version = "1.0.193", features = ["derive"], optional = true }
symphonia = { version = "0.5.3", features = ["all"], optional = true }
thiserror = "2.0.0"
cpal = { version = "0.15.3", optional = true }
parking_lot = "0.12.3"
serde = { version = "1", features = ["derive"], optional = true }
symphonia = { version = "0.5.4", features = ["all"], optional = true }
thiserror = "2.0.11"

[features]
default = ["symphonia", "cpal"]
Expand Down
24 changes: 24 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <https://unlicense.org>
2 changes: 1 addition & 1 deletion examples/record_mixer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::time::Instant;
fn main() {
println!("loading sound...");
let sound = include_sound!("../assets/drozerix_-_crush.ogg").unwrap();
let mut mixer = RecordMixer::new();
let mixer = RecordMixer::new();

mixer.play(sound);

Expand Down
12 changes: 0 additions & 12 deletions examples/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,3 @@ fn main() {
// wait for all sounds to finish (use mixer.is_finished() to check for that)
mixer.wait();
}

// same thing but without comments.
#[cfg(not)]
fn main() {
let sound = include_sound!("drozerix_-_crush.ogg").unwrap();

let mut mixer = Mixer::new();
mixer.init();

mixer.play(sound);
mixer.wait();
}
5 changes: 2 additions & 3 deletions src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,10 @@ impl Device {
self,
host: cpal::Host,
) -> Result<cpal::SupportedBufferSize, KaError> {
Ok(self
Ok(*self
.cpal_device(host)?
.default_output_config()?
.buffer_size()
.clone())
.buffer_size())
}

/// Return the [cpal] device name.
Expand Down

0 comments on commit 31e8522

Please sign in to comment.