Skip to content

Commit

Permalink
tune av audio api
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Nov 26, 2024
1 parent 8125e1f commit 4ec883c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cidre/src/av/audio/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl arc::A<PcmBuf> {
self,
format: &Format,
buf_list: &AudioBufList<N>,
deallocator: Option<&mut blocks::EscBlock<fn(buf_list: *mut AudioBufList<N>)>>,
deallocator: Option<&mut blocks::EscBlock<fn(buf_list: *const AudioBufList<N>)>>,
) -> Option<arc::R<PcmBuf>>;
}

Expand All @@ -63,7 +63,7 @@ impl PcmBuf {
pub fn with_buf_list_no_copy<const N: usize>(
format: &Format,
buf_list: &AudioBufList<N>,
deallocator: Option<&mut blocks::EscBlock<fn(buf_list: *mut AudioBufList<N>)>>,
deallocator: Option<&mut blocks::EscBlock<fn(buf_list: *const AudioBufList<N>)>>,
) -> Option<arc::R<Self>> {
Self::alloc().init_with_pcm_format_buf_list_no_copy(format, buf_list, deallocator)
}
Expand Down

0 comments on commit 4ec883c

Please # to comment.