Skip to content

tiancanfei/ADAudioTool

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

ADAudioTool

iOS的音频播放

使用方法:

pod 'ADAudioTool', '~> 1.0.0'

接口说明:

播放音效,urlString:音效路径 soundIDName:音效缓存key
+ (void)playAudioWithUrl:(NSString *)urlString soundIDName:(NSString *)soundIDName;
播放bound中的音效,name:音效名称
+ (void)playMainBoundAudioWithName:(NSString *)name;
播放沙盒document中的音效,name:音效名称
 + (void)playDocumnetAudioWithName:(NSString *)name;
播放系统声音,soundID:声音id
 + (void)playSystemAudioWithBound:(UInt32)soundID;

系统声音id:http://iphonedevwiki.net/index.php/AudioServices

About

iOS的音频播放

Resources

License

Stars

Watchers

Forks

Packages

No packages published