Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump audio_thread_priority to 0.32. #175

Merged
merged 2 commits into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion audioipc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ memmap2 = "0.9"
arrayvec = "0.7"

[target.'cfg(target_os = "linux")'.dependencies.audio_thread_priority]
version = "0.31"
version = "0.32"
default-features = false

[target.'cfg(windows)'.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion audioipc/src/codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// This should be fixed in Rust 1.68, after which the following `allow` can be deleted.
#![allow(clippy::uninlined_format_args)]

use bincode::{self, Options};
use bincode::Options;
use byteorder::{ByteOrder, LittleEndian};
use bytes::{Buf, BufMut, BytesMut};
use serde::de::DeserializeOwned;
Expand Down
2 changes: 1 addition & 1 deletion audioipc/src/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::PlatformHandleType;
use crate::INVALID_HANDLE_VALUE;
#[cfg(target_os = "linux")]
use audio_thread_priority::RtPriorityThreadInfo;
use cubeb::{self, ffi};
use cubeb::ffi;
use serde_derive::Deserialize;
use serde_derive::Serialize;
use std::ffi::{CStr, CString};
Expand Down
2 changes: 1 addition & 1 deletion client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ edition = "2018"
audioipc = { package = "audioipc2", path = "../audioipc" }
cubeb-backend = "0.12"
log = "0.4"
audio_thread_priority = { version = "0.31", default-features = false }
audio_thread_priority = { version = "0.32", default-features = false }
2 changes: 1 addition & 1 deletion ipctest/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This program is made available under an ISC-style license. See the
// accompanying file LICENSE for details.

use cubeb::{self, ffi, Sample};
use cubeb::{ffi, Sample};
use std::f32::consts::PI;
use std::ffi::CString;
use std::ptr;
Expand Down
2 changes: 1 addition & 1 deletion server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cubeb-core = "0.12.0"
once_cell = "1.2.0"
log = "0.4"
slab = "0.4"
audio_thread_priority = { version = "0.31", default-features = false }
audio_thread_priority = { version = "0.32", default-features = false }

[dependencies.error-chain]
version = "0.12.0"
Expand Down
4 changes: 2 additions & 2 deletions server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ static G_CUBEB_CONTEXT_PARAMS: Lazy<Mutex<CubebContextParams>> = Lazy::new(|| {
});

#[allow(deprecated)]
#[allow(clippy::upper_case_acronyms)]
pub mod errors {
#![allow(clippy::upper_case_acronyms)]
error_chain! {
links {
AudioIPC(::audioipc::errors::Error, ::audioipc::errors::ErrorKind);
Expand Down Expand Up @@ -159,7 +159,7 @@ pub unsafe extern "C" fn audioipc2_server_start(
assert!(!init_params.is_null());
let mut params = G_CUBEB_CONTEXT_PARAMS.lock().unwrap();
if !context_name.is_null() {
params.context_name = CStr::from_ptr(context_name).to_owned();
CStr::from_ptr(context_name).clone_into(&mut params.context_name);
}
if !backend_name.is_null() {
let backend_string = CStr::from_ptr(backend_name).to_owned();
Expand Down
2 changes: 1 addition & 1 deletion server/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use audioipc::{ipccore, rpccore, sys, PlatformHandle};
use cubeb::InputProcessingParams;
use cubeb_core as cubeb;
use cubeb_core::ffi;
use std::convert::{From, TryInto};
use std::convert::TryInto;
use std::ffi::CStr;
use std::mem::size_of;
use std::os::raw::{c_long, c_void};
Expand Down
Loading