Skip to content

Commit 67ed732

Browse files
committed
Add another unit test and bump minor version
1 parent dfb12d4 commit 67ed732

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "coreaudio-rs"
3-
version = "0.11.2"
3+
version = "0.11.3"
44
authors = ["mitchmindtree <mitchell.nordine@gmail.com>", "yupferris <jake@fusetools.com>"]
55
description = "A friendly rust interface for Apple's CoreAudio API."
66
keywords = ["core", "audio", "unit", "osx", "ios"]

src/audio_unit/macos_helpers.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,22 @@ fn test_get_audio_device_ids() {
178178
let _ = get_audio_device_ids().expect("Failed to get audio device ids");
179179
}
180180

181+
#[test]
182+
fn test_get_audio_device_ids_for_scope() {
183+
for scope in &[
184+
Scope::Global,
185+
Scope::Input,
186+
Scope::Output,
187+
Scope::Group,
188+
Scope::Part,
189+
Scope::Note,
190+
Scope::Layer,
191+
Scope::LayerItem,
192+
] {
193+
let _ = get_audio_device_ids_for_scope(*scope).expect("Failed to get audio device ids");
194+
}
195+
}
196+
181197
/// does this device support input / ouptut?
182198
pub fn get_audio_device_supports_scope(devid: AudioDeviceID, scope: Scope) -> Result<bool, Error> {
183199
let dev_scope: AudioObjectPropertyScope = match scope {

0 commit comments

Comments
 (0)