Skip to content

Commit

Permalink
some av::audio doc aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Oct 28, 2024
1 parent bb9a5d5 commit 701ca58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cidre/src/av/audio/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ pub enum MicInjectionPermission {
}

impl ns::NotificationName {
#[doc(alias = "AVAudioApplicationInputMuteStateChangeNotification")]
#[inline]
pub fn audio_app_input_mute_state_change() -> &'static Self {
unsafe { AVAudioApplicationInputMuteStateChangeNotification }
Expand All @@ -53,12 +54,15 @@ define_obj_type!(
impl App {
define_cls!(AV_AUDIO_APPLICATION);

#[doc(alias = "AVAudioApplicationInputMuteStateChangeNotification")]
#[doc(alias = "AVAudioApplication.inputMuteStateChangeNotification")]
#[inline]
pub fn input_change_notification() -> &'static ns::NotificationName {
ns::NotificationName::audio_app_input_mute_state_change()
}

#[doc(alias = "AVAudioApplicationMuteStateKey")]
#[doc(alias = "AVAudioApplication.muteStateKey")]
#[inline]
pub fn mute_state_key() -> &'static ns::String {
unsafe { AVAudioApplicationMuteStateKey }
Expand Down

0 comments on commit 701ca58

Please sign in to comment.