Fix code formatting of asio-sys timestamp changes
This commit is contained in:
parent
63db35ed97
commit
46afc8f695
|
@ -916,9 +916,7 @@ extern "C" fn buffer_switch_time_info(
|
||||||
) -> *mut ai::ASIOTime {
|
) -> *mut ai::ASIOTime {
|
||||||
// This lock is probably unavoidable, but locks in the audio stream are not great.
|
// This lock is probably unavoidable, but locks in the audio stream are not great.
|
||||||
let mut bcs = BUFFER_CALLBACK.lock().unwrap();
|
let mut bcs = BUFFER_CALLBACK.lock().unwrap();
|
||||||
let asio_time: &mut AsioTime = unsafe {
|
let asio_time: &mut AsioTime = unsafe { &mut *(time as *mut AsioTime) };
|
||||||
&mut *(time as *mut AsioTime)
|
|
||||||
};
|
|
||||||
let callback_info = CallbackInfo {
|
let callback_info = CallbackInfo {
|
||||||
buffer_index: double_buffer_index,
|
buffer_index: double_buffer_index,
|
||||||
system_time: asio_time.time_info.system_time,
|
system_time: asio_time.time_info.system_time,
|
||||||
|
|
Loading…
Reference in New Issue