OrigamiEngine icon indicating copy to clipboard operation
OrigamiEngine copied to clipboard

the engine delegate method would run many times while play a song

Open hament opened this issue 11 years ago • 3 comments

the delegate method

  • (NSURL *)engineExpectsNextUrl:(ORGMEngine *)engine

wil run many times while playing a song.

My os is yosemite , rmbp 15 inch~

hament avatar Oct 30 '14 15:10 hament

I found this bug just appear in some songs like play this : https://drive.google.com/file/d/0BzjdbbgYruNbSV80OFAwcjRHczg/view?usp=sharing

hament avatar Oct 30 '14 16:10 hament

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.

ap4y avatar Nov 02 '14 09:11 ap4y

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.

rperney avatar Nov 26 '14 15:11 rperney