Drop-in iOS Audio Player built on top of BASS-library.
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.
Play:
- (BOOL)playItemWithURL:(NSURL *)url;Pause:
- (void)pause;Resume:
- (void)resume;Is playing?:
- (BOOL)isPlaying;Get current track duration:
- (NSTimeInterval)duration;Get and set current track position:
/* Represents current position 0..1 */
@property (nonatomic, assign) CGFloat position;Get and set volume:
//0..1
@property (nonatomic, assign) CGFloat volume;…CocoaPods:
pod 'APAudioPlayer'Manually:
//Somewhere during init
self.player = [APAudioPlayer new];
//Somewhere else
NSURL *fileURL = [[NSBundle mainBundle] URLForResource:@"Meat Loaf - Dead Ringer" withExtension:@"wv"];
[self.player playItemWithURL:fileURL];Checkout Example folder.
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/bass.html#license
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.
No open issues yet, or sync has not completed.