AEMemoryBufferPlayer file loading time
Is the async AEMemoryBufferPlayers beginLoadingAudioFileAtURL faster loading a larger file than the
sync AEAudioFilePlayer audioFilePlayerWithURL ?
For me it seems that is even slower. Can that be?
I use it this way:
[AEMemoryBufferPlayer beginLoadingAudioFileAtURL:a1.file audioDescription:_audioDescription completionBlock:^(AEMemoryBufferPlayer *newbufferloop, NSError *err) {
_loopA1 = newbufferloop;
[_loopA1 setLoop:YES];
[_loopA1 setRemoveUponFinish:YES];
_loopA1.volume = 0.99f;
[_audioController addChannels:@[_loopA1] toChannelGroup:_group];
}];
as opposed to :
[AEAudioFilePlayer audioFilePlayerWithURL:a1.file error:NULL];
Is there a way to only partially load the file for more speed?
Or would method
- initWithBuffer:audioDescription:freeWhenDone:
bring any advantage ? If yes, how ?
Thanks!