Latest 0.0.4
License MIT
Platforms ios 6.0, requires ARC
Frameworks AVFoundation

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

Supported formats:

… and even more I haven’t tested.

Dead-simple interface:


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


- (void)pause;


- (void)resume;

Is playing?:

- (BOOL)isPlaying;

Get current track duration:

- (NSTimeInterval)duration;

Get current track position:

- (NSTimeInterval)position;

Get and set volume:

@property (nonatomic, assign) CGFloat volume;

Dead-simple protocol:

 Will be called when track is over

- (void)playerDidFinishPlaying:(KSAudioPlayer *)player;

 Will be called when interruption occured.
 For ex. phone call.
 Basically you should call - (void)pause in this case.

- (void)playerBeginInterruption:(KSAudioPlayer *)player;

 Will be called when interruption ended.
 For ex. phone call ended.
 It's up to you to decide to call - (void)resume or not.

- (void)playerEndInterruption:(KSAudioPlayer *)player shouldResume:(BOOL)should;



pod 'KSAudioPlayer'


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

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


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.

What’s next?:

  1. Seek to time.
  2. Online streaming.

Feel free to open issues and pull requests. Or email me [email protected]

Latest podspec

    "name": "KSAudioPlayer",
    "version": "0.0.4",
    "summary": "Drop-in iOS Audio Player built on top of BASS-library",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE.txt"
    "authors": {
        "Serg Krivoblotsky": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.0.4"
    "source_files": "KSAudioPlayer/**/*.{h,m}",
    "ios": {
        "vendored_libraries": [
    "platforms": {
        "ios": "6.0"
    "requires_arc": true,
    "frameworks": "AVFoundation"

Pin It on Pinterest

Share This