# ZGDAudioManger **Repository Path**: ZhaoGuodongOS/ZGDAudioManger ## Basic Information - **Project Name**: ZGDAudioManger - **Description**: Using The Apple Source AudioToolbox.FrameWork Complete the handling of the sound file (使用源生AudioToolbox.FrameWork完成对音效文件的处理,可同时实现震动播放) - **Primary Language**: Objective-C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-01-11 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## 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 注意:建议使用单例对象方式创建实例对象 #### 可实现独立播放音效 也可添加振动 ```objc /** * 播放音效 * * @param file 音频文件路径 */ - (void)playAudioSystemSoundWithFile:(NSString *)file; ``` ```objc - (void)playAudioSystemSoundWithFile:(NSString *)file; /** * 播放音效 + 震动 * * @param file 音频文件路径 */ - (void)playAudioSystemSoundAndAlertSoundWithFile:(NSString *)file; ```