ofxAudioUnit icon indicating copy to clipboard operation
ofxAudioUnit copied to clipboard

calling play() is slow

Open stephanschulz opened this issue 6 years ago • 1 comments

I have 700 audio files that I manually loop by checking their playhead position against their duration. In previous versions on an older system this worked fine. But on OSX 10.12 with OF 0.10. this slowed my app down to 1fps.

So I made a custom resetToStart() function that basically does the same as play() but does not all of the priming.

https://github.com/antimodular/ofxAudioUnit/blob/b09d380ce3396c38aa700e4d5ca2ef7c112bc15b/src/ofxAudioUnitFilePlayer.cpp#L267-L293

stephanschulz avatar Mar 10 '18 01:03 stephanschulz

are you compiling ok for 0.10 ?

dimitre avatar Apr 24 '18 02:04 dimitre