Skip to content

Commit

Permalink
tune av::audio::Format api
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Nov 26, 2024
1 parent 9f5aeb9 commit 8125e1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cidre/src/av/audio/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ impl Format {
/// let settings = format.settings();
/// ```
#[objc::msg_send(settings)]
pub fn settings(&self) -> &ns::Dictionary<ns::String, ns::Id>;
pub fn settings(&self) -> arc::R<ns::Dictionary<ns::String, ns::Id>>;

#[objc::msg_send(isInterleaved)]
pub fn is_interleaved(&self) -> bool;
Expand All @@ -145,10 +145,10 @@ impl Format {
pub fn absd(&self) -> &StreamBasicDesc;

#[objc::msg_send(channelLayout)]
pub fn channel_layout(&self) -> Option<&ChannelLayout>;
pub fn channel_layout(&self) -> Option<arc::R<ChannelLayout>>;

#[objc::msg_send(magicCookie)]
pub fn magic_cookie(&self) -> Option<&ns::Data>;
pub fn magic_cookie(&self) -> Option<arc::R<ns::Data>>;
}

#[link(name = "av", kind = "static")]
Expand Down

0 comments on commit 8125e1f

Please # to comment.