SkillAgentSearch skills...

ZGDAudioManger

Using The Apple Source AudioToolbox.FrameWork Complete the handling of the sound file (使用源生AudioToolbox.FrameWork完成对音效文件的处理,可同时实现震动播放)

Install / Use

/learn @guodongZhao/ZGDAudioManger
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

ZGDAudioManger

====================

Instructions: Using The Apple Source AudioToolbox.FrameWork Complete the handling of the sound file

(使用源生AudioToolbox.FrameWork完成对音效文件的处理,可同时实现振动播放)

Method--Use

   Attention:It is recommended to use the singleton object instance is created  
   注意:建议使用单例对象方式创建实例对象

可实现独立播放音效 也可添加振动

/**
 *  播放音效
 *
 *  @param file 音频文件路径
 */
- (void)playAudioSystemSoundWithFile:(NSString *)file;
- (void)playAudioSystemSoundWithFile:(NSString *)file;
/**
 *  播放音效 + 震动
 *
 *  @param file 音频文件路径
 */
- (void)playAudioSystemSoundAndAlertSoundWithFile:(NSString *)file;
View on GitHub
GitHub Stars7
CategoryDevelopment
Updated1y ago
Forks0

Languages

Objective-C

Security Score

55/100

Audited on Mar 17, 2025

No findings