OrigamiEngine
OrigamiEngine copied to clipboard
the engine delegate method would run many times while play a song
the delegate method
- (NSURL *)engineExpectsNextUrl:(ORGMEngine *)engine
wil run many times while playing a song.
My os is yosemite , rmbp 15 inch~
I found this bug just appear in some songs like play this : https://drive.google.com/file/d/0BzjdbbgYruNbSV80OFAwcjRHczg/view?usp=sharing
For some reason it doesn't happen for me. I have exactly one call of engineExpectsNextUrl. I also spotted another issue that low quality short files don't play because initial buffer requirements are quite generous. You can solve it by lowering buffer size here. Hope this helps.
I do have a similar bug : I noticed that my songs were cut before the end, because of the line [_input flushBuffer] even if bool flush was NO. I added an if(flush) condition, but now, I get a loop on the delegate call, due to [self setEndOfInput:YES] in the process method of the input.