Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

APAudioPlayer

> 编程语言
Open source

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

181 stars0 likes0 views
WebsiteGitHub

About

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

#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 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

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