OrigamiEnginehtml
https://github.com/ap4y/OrigamiEnginegit
Lightweight iOS and OSX audio engine with opus, flac, cue, mp3, m4a, m3u support.github
輕量級iOS,OSX音頻處理工具,支持opus, flac, cue, mp3, m4a, m3uapi
opus
, flac
, mp3
, m4a
, wav
and other from CoreAudio 支持的文件格式包括opus
, flac
, mp3
, m4a
, wav
以及其餘CoreAudio支持的類型cue
, m3u 支持播放列表
Static library and cocoapods podspec
provided. Static library can be compiled with embeeded FLAC library (check project targets). For OSX you can use static framework.async
提供靜態庫或者cocoapods.靜態庫可用來編譯嵌入FLAC的庫,在OSX上,你可使用靜態庫.ide
Start playback: 開始播放:工具
self.player = [[ORGMEngine alloc] init]; NSURL* url = [NSURL URLWithString:tfUrl.text]; [_player playUrl:url];
Common operations: 經常使用的操做:
[_player metadata]; // current metadata [_player pause]; // pause playback [_player resume]; // resume playback [_player stop]; // stop playback [_player seekToTime:seekSlider.value]; // seek to second [_player setNextUrl:url withDataFlush:YES]; // play next track and clear current buffer
Delegate methods: 代理方法:
- (NSURL*)engineExpectsNextUrl:(ORGMEngine*)engine; // provides continious playback - (void)engine:(ORGMEngine*)engine didChangeState:(ORGMEngineState)state; // state change callback
Check example project and tests for the additional information.
Project headers contain appledoc
comments, precompiled docset here.
工程頭文件件中包含了appledoc的描述.
OCUnit
tests included into the project.
Cog
sources