Skip to content

Commit 31e8522

Browse files
committed
fix ci, unlicense, update deps, bump semver
1 parent f16d3f9 commit 31e8522

File tree

6 files changed

+34
-29
lines changed

6 files changed

+34
-29
lines changed

.github/workflows/rust.yml

-6
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,3 @@ jobs:
2424
run: cargo test --all-features --verbose
2525
- name: Rustfmt
2626
run: cargo fmt --all -- --check
27-
- name: Install cargo-cranky
28-
uses: baptiste0928/cargo-install@v1
29-
with:
30-
crate: cargo-cranky
31-
- name: Cranky
32-
run: cargo cranky --all-targets --all-features -- -D warnings

Cargo.toml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "kittyaudio"
33
description = "An audio playback library focusing on simplicity"
4-
license = "MIT OR BSL-1.0"
5-
version = "0.1.9"
4+
license = "Unlicense OR MIT OR BSL-1.0"
5+
version = "0.2.0"
66
exclude = ["assets/**"]
77
documentation = "https://docs.rs/kittyaudio"
88
homepage = "https://github.com/zeozeozeo/kittyaudio"
@@ -15,11 +15,11 @@ readme = "README.md"
1515
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1616

1717
[dependencies]
18-
cpal = { version = "0.15.2", optional = true }
19-
parking_lot = "0.12.1"
20-
serde = { version = "1.0.193", features = ["derive"], optional = true }
21-
symphonia = { version = "0.5.3", features = ["all"], optional = true }
22-
thiserror = "2.0.0"
18+
cpal = { version = "0.15.3", optional = true }
19+
parking_lot = "0.12.3"
20+
serde = { version = "1", features = ["derive"], optional = true }
21+
symphonia = { version = "0.5.4", features = ["all"], optional = true }
22+
thiserror = "2.0.11"
2323

2424
[features]
2525
default = ["symphonia", "cpal"]

LICENSE

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
This is free and unencumbered software released into the public domain.
2+
3+
Anyone is free to copy, modify, publish, use, compile, sell, or
4+
distribute this software, either in source code form or as a compiled
5+
binary, for any purpose, commercial or non-commercial, and by any
6+
means.
7+
8+
In jurisdictions that recognize copyright laws, the author or authors
9+
of this software dedicate any and all copyright interest in the
10+
software to the public domain. We make this dedication for the benefit
11+
of the public at large and to the detriment of our heirs and
12+
successors. We intend this dedication to be an overt act of
13+
relinquishment in perpetuity of all present and future rights to this
14+
software under copyright law.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.
23+
24+
For more information, please refer to <https://unlicense.org>

examples/record_mixer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::time::Instant;
77
fn main() {
88
println!("loading sound...");
99
let sound = include_sound!("../assets/drozerix_-_crush.ogg").unwrap();
10-
let mut mixer = RecordMixer::new();
10+
let mixer = RecordMixer::new();
1111

1212
mixer.play(sound);
1313

examples/simple.rs

-12
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,3 @@ fn main() {
2323
// wait for all sounds to finish (use mixer.is_finished() to check for that)
2424
mixer.wait();
2525
}
26-
27-
// same thing but without comments.
28-
#[cfg(not)]
29-
fn main() {
30-
let sound = include_sound!("drozerix_-_crush.ogg").unwrap();
31-
32-
let mut mixer = Mixer::new();
33-
mixer.init();
34-
35-
mixer.play(sound);
36-
mixer.wait();
37-
}

src/backend.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,10 @@ impl Device {
6868
self,
6969
host: cpal::Host,
7070
) -> Result<cpal::SupportedBufferSize, KaError> {
71-
Ok(self
71+
Ok(*self
7272
.cpal_device(host)?
7373
.default_output_config()?
74-
.buffer_size()
75-
.clone())
74+
.buffer_size())
7675
}
7776

7877
/// Return the [cpal] device name.

0 commit comments

Comments
 (0)