百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

APAudioPlayer

> 编程语言
开源

基于 BASS 库构建的可插入式 iOS 音频播放器。

181 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

基于 BASS 库构建的可插入式 iOS 音频播放器。

#APAudioPlayer

Drop-in iOS Audio Player built on top of BASS-library.

###Supported formats:

*.m4a, *.mp3, *.mp2, *.mp1, *.wave, *.ogg, *.wav, *.aiff, *.opus, *.flac, *.wv. ... and even more I haven't tested.

Dead-simple interface:

Play:

objc
- (BOOL)playItemWithURL:(NSURL *)url;

Pause:

objc
- (void)pause;

Resume:

objc
- (void)resume;

Is playing?:

objc
- (BOOL)isPlaying;

Get current track duration:

objc
- (NSTimeInterval)duration;

Get and set current track position:

objc
/* Represents current position 0..1 */
@property (nonatomic, assign) CGFloat position;

Get and set volume:

objc
//0..1
@property (nonatomic, assign) CGFloat volume;

Dead-simple protocol:

…

Integration:

CocoaPods:

ruby
pod 'APAudioPlayer'

Manually:

  1. Drag-and-drop APAudioPlaeyr folder into your project.
  2. Add AVFoundation.framework to your project
  3. Instantiate APAudioPlayer and have fun:
objc
//Somewhere during init
self.player = [APAudioPlayer new];

//Somewhere else
NSURL *fileURL = [[NSBundle mainBundle] URLForResource:@"Meat Loaf - Dead Ringer" withExtension:@"wv"];
[self.player playItemWithURL:fileURL];

Example:

Checkout Example folder.

BASS:

BASS is an audio library for use in software on several platforms. Its purpose is to provide developers with powerful and efficient sample, stream (MP3, MP2, MP1, OGG, WAV, AIFF, custom generated, and more via OS codecs and add-ons), MOD music (XM, IT, S3M, MOD, MTM, UMX), MO3 music (MP3/OGG compressed MODs), and recording functions. All in a compact DLL that won't bloat your distribution.

http://www.un4seen.com

http://www.un4seen.com/bass.html#license

What's next?:

  1. Online streaming.

Contacts

If you have improvements or concerns, feel free to post an issue and write details.

Check out all Alterplay's GitHub projects. Email us with other ideas and projects.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言